按钮超链接的js示例

<input type=button οnclick="window.location.href='*******.htm'" value="打开">
<input name="Submit" type="submit" class="inputedit" value="删除" 
      οnclick="{if(confirm('确定纪录吗?')){this.document.formname.submit();return true;}return false;}">     
 onClick="javascript:window.print()"    
    
 onClick="javascript:window.location='admin.asp'"    
    
 onClick="javascript:window.history.go(-1)"    
    
 onClick="javascript:window.close()"    
   
  <a href="contract_add_save.jsp?contract_id=<%=contr_rs(0)%>&submit=%C9%BE%B3%FD" οnclick="{if(confirm('确定删除(<%=contr_rs(2)%>)吗?')){this.document.formname.submit();return true;}return false;}">删除</a> 

自动关闭  

 <script LANGUAGE="JavaScript">  
<!--  
setTimeout('window.close();', 3000);  
// -->  
</script> 

新开一个面页 

<script src=javascript:window.open('http://com.smt.cn/lostpwd1.asp')> 

提示后打开一个页面 
<a href="xxx.jsp" target="_blank"  title="点击查看客户给您的留言"  onClick="javascript:alert('您是免费会员,无权查看客户给您的留言!/n如需升级请联系<%=linktel%> <%=linkname%>/n点击确定会后列出资费列表,请查看您所需要服务等级!');"> 

<input name="按钮" type="button" ID="ok" οnclick="{if(confirm('确定删除吗?')){window.location='Action.jsp?Action=Del&TableName=Item&ID=<%=ID%>';return true;}return false;}" value="删除" />   
<input  height="20" type=button class="buttonOper" width="100" value="删除该工作经历" οnclick="{if(confirm('确定删除吗?')){window.location='delwork_deal.jsp?id=<%=cItem.get_id() %>&idEmpInfo=<%=id %>';return true;}return false;}">

原文地址:http://blog.csdn.net/mmquit/archive/2007/11/05/1867691.aspx


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值