Home > Web Front-end > JS Tutorial > Invalid solution to javasc#ipt:void(0) under IE6_javascript skills

Invalid solution to javasc#ipt:void(0) under IE6_javascript skills

WBOY
Release: 2016-05-16 17:07:47
Original
1988 people have browsed it

IE 6, JSP link problem:

function btnHome_onClick(){
window.open("com.mcl.common.main.InitHome.flow","mainFrame");
if(winoperate.style.display != "none") {
silde_onClick();
sildebar.style.display='none';
winoperate.style.display='none';
}
}

The above code will not have any response under IE6.

The reason is: void(0) is a calculation expression, and a result of returning 0 will not have any response to the page;

After the onClick event, the default event of a will also be triggered: void(0)

Solution: add return false;

Home

Related labels:
ie6
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template