Javascript中的“弹出"对话框 [英] Pop Up dialog box in Javascript

查看:72
本文介绍了Javascript中的“弹出"对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我无法决定如何进行此操作,我想在用户单击提交"时在屏幕上显示一个弹出对话框,表示继续保存信息或取消选项.我的提交"按钮已经另一个功能是将以表格形式输入的条目显示为pdf.是否可以使相同的按钮在10秒钟后显示对话框,然后单击保存将信息写入数据库?

附注:我认为这对您来说是一个非常简单的问题,但是我对Web开发有点陌生.

非常感谢您的帮助.

Hello,
I''m unable to decide on how to proceed with this, I would like to have a pop up dialog box displayed on the screen when an user clicks on submit which would say continue to save information or cancel option.My submit button is already doing another function of displaying the entries made in the form as a pdf. Is it possible to make the same button display the dialog box say after 10 seconds and then when i click save, write the information to the database?

P.S.: I think this would be a quite a simple question to answer for you guys, but I''m a bit new to web development.

Your help is much appreciated.

推荐答案

不确定我是否理解正确,但是要在延迟后触发弹出窗口,可以使用window.setTimeout

http://www.w3schools.com/jsref/met_win_settimeout.asp [
Not sure if I understand correctly, but to trigger popup after a delay you can use window.setTimeout

http://www.w3schools.com/jsref/met_win_settimeout.asp[^]


http://stackoverflow.com/questions/1457871/how-can-i- close-a-jquery-ui-dialog-after-ax-seconds [

这篇关于Javascript中的“弹出"对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆