There are several benefits to using link a instead of a button when cutting a page
Hand-like effect by default when mouse is placed (without adding cursor:pointer)
Can add pseudo classes supported by low version IE
If you click on the page to the overall refresh, that is, jump, then IE6 is not satisfactory, as follows
Copy Code code as follows:
<p><a href= "javascript:;" onclick= "Jumpsina ()" >Sina</a></p>
<p><a href= "Javascript:void 0;" onclick= "Jumpsohu ()" >Sohu</a></p>
<script>
function Jumpsina () {
Location.href = ' http://www.sina.com.cn '
}
function Jumpsohu () {
Location.href = ' http://www.sohu.com '
}
</script>
IE6 Click on the link can not jump, other browsers are OK. The solution is to change the anchor point,
Copy Code code as follows:
<p><a href= "###" onclick= "Jumpsina ()" >Sina</a></p>
<p><a href= "#none" onclick= "Jumpsohu ()" >Sohu</a></p>
<script>
function Jumpsina () {
Location.href = ' http://www.sina.com.cn '
}
function Jumpsohu () {
Location.href = ' http://www.sohu.com '
}
</script>
If you change the jump mode to window.open, then IE6 no problem, as follows
Copy Code code as follows:
<p><a href= "javascript:;" onclick= "Jumpsina ()" >Sina</a></p>
<script>
function Jumpsina () {
window.open (' http://www.sina.com.cn ')
}
</script>