In IE6, when the href of link A is javascript, it cannot be redirected to the current page. This example provides an effective solution. You may wish to refer to the section when cutting down the page, sometimes using link A to replace the button, there are several advantages to doing so.
By default, the mouse has a hand effect (you do not need to add cursor: pointer)
You can add pseudo classes supported by earlier IE versions.
If you need to refresh the page as a whole, that is, jump, then IE6 is not satisfactory, as shown below:
The Code is as follows:
Sina
Sohu
Script
Function jumpSina (){
Location. href = 'HTTP: // www.sina.com.cn'
}
Function jumpSohu (){
Location. href = 'HTTP: // www.sohu.com'
}
Script
In IE6, clicking a link cannot jump, and other browsers can. The solution is to change it to an anchor,
The Code is as follows:
Sina
Sohu
Script
Function jumpSina (){
Location. href = 'HTTP: // www.sina.com.cn'
}
Function jumpSohu (){
Location. href = 'HTTP: // www.sohu.com'
}
Script
If you change the Redirect mode to window. open, there is no problem in IE6, as shown below:
The Code is as follows:
Sina
Script
Function jumpSina (){
Window. open ('HTTP: // www.sina.com.cn ')
}
Script