Home > Web Front-end > JS Tutorial > body text

javascript确认框的三种使用方法_基础知识

WBOY
Release: 2016-05-16 17:08:40
Original
1440 people have browsed it

第一种方法:挺好用的,确认以后才能打开下载地址页面。原理也比较清晰。主要用于删除单条信息确认。

复制代码 代码如下:


调用方法:

复制代码 代码如下:

 删 除
 

第二种方法:原理跟上面的一样。JavaScript删除确认框

复制代码 代码如下:

第三种:主要用于批量删除的确认提示

复制代码 代码如下:

  onclick="{if(confirm('确定纪录吗?')){
    this.document.formname.submit();
    return true;}return false;
  }">

Related labels:
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!