请教各位javascript高手
我写了以下代码:
<script languague="javascript">
<!--begin
function top_click(ope){
if (ope == 'add'){
window.location.replace("System_management_top.jsp?operate=add");
window.parent.frames.item(1).location.replace("System_management_add.html");
window.parent.frames.item(2).location.replace("System_management_help.jsp?msg=helpAdd");
}else
if (ope == 'change'){
window.location.replace("System_management_top.jsp?operate=list");
window.parent.frames.item(1).location.replace("System_management_list.html");
window.parent.frames.item(2).location.replace("System_management_help.jsp?msg=helpList");
}
}
end-->
</script>
上面这个函数是用于根据用户点击的超连接,让不同的frame同时加载相应的页面,两个超连接如下:
<a href="javascript:top_click('add');"> New user</a>
<a href="javascript:top_click('change');">Change user infomation</a>
以上代码在ie里能正确执行,可在netscape中却不行,我想请问大侠,如何能让ie和netscape都能正确的执行上面的代码?
谢谢!