当前位置:网站首页>按钮弹窗事件
按钮弹窗事件
2022-08-05 17:41:00 【一朵灼灼华】
一种:<a href="javascript:if(confirm('确实要删除该内容吗?'))location='http://www.google.com'">弹出窗口</a>
二种:<script language="JavaScript"> function delete_confirm(e) {
if (event.srcElement.outerText == "删除")
{
event.returnValue = confirm("删除是不可恢复的,你确认要删除吗?");
}
}
document.onclick = delete_confirm;</script><a href="Delete.aspx" onClick="delete_confirm">删除</a>
三种:
if(window.confirm('你确定要取消交易吗?')){
//alert("确定");
return true;
}else{
//alert("取消");
return false;
}
四种: <script language="JavaScript"> function delete_confirm() <!--调用方法-->
{
event.returnValue = confirm("删除是不可恢复的,你确认要删除吗?");
}</script>
边栏推荐
- What are the elements related to the form
- Notes from Google Play | Google Play 持续助力您的应用和游戏
- 从功能测试到掌握自动化,四个月时间我是如何从点工进入互联网大厂
- TABLE
- 8.lnmp architecture
- Good code in the eyes of a compiler engineer: Loop Interchange
- 微服务Client模块
- 生成扩散模型漫谈:DDIM = 高观点DDPM
- 【论文阅读】Multi-view Multi-instance Multi-label Active Learning
- 宝塔实测-电商ERP进销存系统源码
猜你喜欢

备份阿里云数据库到本地数据库

【OAuth2】十四、OAuth2授权端点配置类OAuth2AuthorizationEndpointConfigurer和OAuth2AuthorizationEndpointFilter

Why do so many people discourage software testing?Don't click here if the monthly salary is more than 10,000.

Flutter DataGrid教程之表格图标日历Excel完整App源码(教程含源码)

软件测试岗位未来趋势怎么样?

js文字开场百叶窗js特效

一套多用表单小部件代码下载

1、要了解sorted函数的key参数

一起探秘,不可不知双向链表底层原理

Meet Alluxio, the "middleman" in MRS
随机推荐
EN 12259-3喷水灭火系统干式报警阀组件—CE认证
Problems encountered in CDH operation and maintenance
SwiftUI 教程之使用 DocumentGroup 和 FileDocument 创建基于文本文档的应用程序
AIRIOT答疑第7期|如何快速提升物联网项目交付速度?
【OAuth2】九、资源服务器
EN 12259-2固定消防系统湿式报警阀组件—CE认证
【 背包九讲——完全背包问题】
对非均匀采样信号进行重采样
Excel中的七个简单粗暴的技巧!
【OAuth2】十、BearerTokenAuthenticationFilter过滤器介绍
营销之王完美日记卖不动了
Shell自动化编程初识
创作365天纪念日
PHP获取客户端IP的函数
Kettle需求场景复现
Ali's million-level Redis booklet shocked open source, opening up a new world of source code
【2012】【论文笔记】超材料的二维等价物——GSTC
生成扩散模型漫谈:DDIM = 高观点DDPM
mysql主主复制
认识一下MRS里的“中间人”Alluxio