Home > Web Front-end > JS Tutorial > How to open a hyperlink that requires a 'confirm' dialog box_Basic knowledge

How to open a hyperlink that requires a 'confirm' dialog box_Basic knowledge

WBOY
Release: 2016-05-16 19:17:26
Original
784 people have browsed it

[Ctrl A select all Note: If you need to introduce external Js, you need to refresh to execute
]<script> //将下面一段代码插入<head>与之间: function rusure() { question = confirm("确实要去进入吗?") if (question !="0") { window.open("","测试","width=340,height=163,toolbar=0,status=0,menubar=0,resize=0"); } question =alert("警告信息"); question = prompt("问题","默认回答") } //在链接标签内加入onclick()语句: </script>
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template