JavaScript differences between # and void Analysis _javascript tips

Source: Internet
Author: User
Tags blank page
First, let's do an experiment.
Open the empty page of any browser, and enter the following code in the Address entry field:
Copy Code code as follows:

Javascript:void (3);

What's going to happen?
The answer is that nothing is going to happen.
Then, we open a blank page of the browser and enter the following code in the Address bar:
Copy Code code as follows:

Javascript:function Test () {return "Hello";}; Test ();

What happens then, is nothing going to happen?
Obviously not, we get a new page, and the content of the page is JS code return value (that is, hello);
Why is that?
Because when the browser parses JS, if there is a return value, then a new page will be generated, if there is nothing to do.
That's why the two examples above have this difference.
All right, that's the point.
Let's take a look at the next two very similar pieces of code
Copy Code code as follows:

<a href= "#" > Hyperlink </a>

Copy Code code as follows:

<a href= "javascript:void (3);" > Hyperlink2 </a>

Then we put the two broken codes on the same page and click on them in turn.
Seemingly nothing happened, is it so that they are equivalent to it?
So let's take another look at the code.
Copy Code code as follows:

<! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 transitional//en" >
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<meta name= "generator" content= "EditPlus" >
<meta name= "Author" content= "" >
<meta name= "Keywords" content= "" >
<meta name= "Description" content= "" >
</HEAD>
<BODY>
This is the head of the page!
[BR]
[BR]
[BR]
[BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR]
[BR]
[BR]
[BR]
[BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR]
[BR]
[BR]
[BR]
[BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR]
[BR]
[BR]
[BR]
[BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR]
[BR]
[BR]
[BR]
[BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR]
[BR]
[BR]
[BR]
[BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR]
[BR]
[BR]
[BR]
[BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR]
[BR]
[BR]
[BR]
[BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR]
[BR]
[BR]
[BR]
[BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR]
[BR]
[BR]
[BR]
[BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR]
[BR]
[BR]
[BR]
[BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR]
[BR]
[BR]
[BR]
[BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR]
[BR]
[BR]
[BR]
[BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR]
[BR]
[BR]
[BR]
[BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR] [BR]
<a href= "#" >href== #的超链接 </a>
<a href= "javascript:void (3+1); alert (' Hello ');" > Href==javascript:void (3+1); of Hyperlinks </a>
</BODY>
</HTML>

So we click on two more links to see, the effect is different.
The href for # jumps to its own page.
The original ' # ' stands for #top,
The top property returns the topmost ancestor window.
This property returns a read-only reference to the team's top-level window. If the window itself is a top-level window, the top property holds a reference to the window itself. If the window is a frame, the top property refers to the top-level window that contains the frame.
The void function returns NULL, which means that the browser doesn't do anything.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.