第一种:在window.location.href 后面加上 window.event.returnValue = false;如:第二种:把window.location.href写成 JavaScript:window.location.href如:第三种:不写 href 直接写onlick ....
<div onclick="a()"> ?? ??<div onclick="b()"> ?? ???<a id="a" href="" onclick="c()">点击我</a> ?? ??</div> ?? ?</div> 当点击“点击我”按钮的时候,会依次执行 方法 c(),b(),a()方...
分类:
其他好文 时间:
2015-05-04 12:09:07
阅读次数:
116
1、在index.jsp中传递商品id,在a标签中加入href的内容,href="${pageContext.request.contextPath }/product_findByPid.action?pid="
">" data-original="http://storage.shopxx.net/demo-image/3.0/201301/4a5...
分类:
其他好文 时间:
2015-05-03 23:46:04
阅读次数:
330
addBookmark(document.tittle);function addBookmark(title){var url=parent.location.href;if(window.sidebar){window.sidebar.addPanel(title,url,"")}else if...
分类:
Web程序 时间:
2015-05-01 09:20:37
阅读次数:
161
1.window.location.href方式window.location.href="http://www.zgw8.com";2.window.navigate方式跳转window.navigate("http://www.zgw8.com");3.window.loction.replac...
分类:
Web程序 时间:
2015-04-30 17:33:30
阅读次数:
124
前面整理的都是html常用到的标签,这里整理一下html的的头部和元信息标签。
定义html都的头部要写在标签里面,一般他还包含如下一些标签:
1,:用来包含JavaScript脚本
2,:用来定义内容css样式
3,:用来链接外部css等资源
4,:用来定义文档标题
5,:用来指定页面上所有的链接的基准链接,是一个空元素。有2个属性:href和target
6,:用来定义页面元...
分类:
Web程序 时间:
2015-04-30 16:13:28
阅读次数:
109
','');"> ' href="javascript:void(0)" class="btn" onclick="event.cancelBubble=true;CallOutClient('','');">...
分类:
其他好文 时间:
2015-04-30 15:48:24
阅读次数:
207
一、JS实现关闭当前子窗口,刷新父窗口
JS代码如下:
function refreshParent() {
window.opener.location.href = window.opener.location.href;
window.close();
}
html页面代码如下:
onclick=...
分类:
Web程序 时间:
2015-04-30 10:49:27
阅读次数:
217
<formid="form1"runat="server"><divid="divOne"onclick="alert(‘我是最外层‘);">
<divid="divTwo"onclick="alert(‘我是中间层!‘)">
<aid="hr_three"href="http://www.websqq.org"mce_href="http://www.websqq.org"onclick="alert(‘我是最里层!‘)">..
分类:
其他好文 时间:
2015-04-29 11:58:46
阅读次数:
160
<?php$a=4;$b=2;if($a>$b){//header("location:test2.php");echo"<script>alert(‘test2‘);location.href=‘test2.php‘;</script>";}else{echo"<script>alert(‘test3‘);location.href=‘test3.php‘;</script>";}?>
分类:
Web程序 时间:
2015-04-28 18:55:42
阅读次数:
145