- 2020-03-29 23:49:20
The void operator is used in the following format:
You specify the hyperlink with the void operator. The expression is evaluated but nothing is loaded at the current document.
The following code creates a hyperlink to submit the form when the user orders:
# contains a location information
The default anchor is #top which is the top of the page
That's why sometimes the page is long and the link is #
It jumps to the top of the page
So it's best to use it when calling scripts
< Input onclick>
< Div onclick> Etc.
Several ways to link
1. The window. The open (" url ")
2. Use custom functions