Sometimes link A is used to replace the button when switching pages. There are several advantages to doing this
By default, when the mouse is placed, there will be a hand-shaped effect (no need to add cursor:pointer)
You can add the one supported by lower versions of IE Pseudo class
If the page needs to be refreshed as a whole when clicked, that is, it will jump, then IE6 is not satisfactory, as follows
Sina
Sohu
<script> <br>function jumpSina () { <br>location.href = 'http://www.sina.com.cn' <br>} <br>function jumpSohu() { <br>location.href = 'http://www.sohu .com' <br>} <br></script>
Clicking the link cannot jump in IE6, but other browsers can. The solution is to change it to an anchor point,
Sina
Sohu
<script> <br>function jumpSina() { <br>location.href = 'http://www.sina.com.cn' <br>} <br>function jumpSohu() { <br>location.href = 'http://www.sohu.com' <br>} <br></script>
If you change the jump mode to window.open, there will be no problem under IE6, as follows
Sina
<script> <br>function jumpSina() { <br>window.open( 'http://www.sina.com.cn') <br>} <br></script>