1
我想目标属性添加到div标签(请参见下面的代码),这样在网页“的index.html”在同一页面打开即target_selfDiv标签target属性
<div id="home" style="cursor:pointer;
"href="javascript:void(0)"
onclick="window.open('index.html')"></div>
我想目标属性添加到div标签(请参见下面的代码),这样在网页“的index.html”在同一页面打开即target_selfDiv标签target属性
<div id="home" style="cursor:pointer;
"href="javascript:void(0)"
onclick="window.open('index.html')"></div>
你应该改变从window.open
到window.location.href =
谢谢...如果我想链接索引应该是window.location.href =“index.html”的代码,还是我需要添加“之前的索引 – 2011-05-24 18:23:08
感谢得到它的工作...成功 – 2011-05-24 18:32:46