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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-16 17:07:47
Original
2040 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
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
Latest Issues
Problems with background templates
From 1970-01-01 08:00:00
0
0
0
Isn't getday() returning 0-6?
From 1970-01-01 08:00:00
0
0
0
Why is 0==null true in PHP?
From 1970-01-01 08:00:00
0
0
0
length is 0 or empty
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template