window.open()javascript方法 [英] window.open() javascript method

查看:161
本文介绍了window.open()javascript方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮帮我..........

对于弹出窗口,我使用window.open()方法.

我的要求是打开此选项后禁用文档click.means,用户应只允许使用弹出窗口.
关闭弹出窗口后,只有他可以访问网页

help me please..........

for popup window am using window.open() method.

my requirement is after opening this disable the document click.means user should allow to work with popup window only.
after closing the popoup only he can access the webpage

推荐答案

,而不是window.open,您需要一个模式窗口.可以使用不同的选项来实现此目的,例如DHTML,IFrame,jquery等.

检查以下链接,该链接显示了如何使用DHTML进行此操作


http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/dhtmlmodal.htm [ ^ ]

jQuery:

http://jqueryui.com/demos/dialog/ [
instead of window.open, you need a modal window. different options are available to achieve this like DHTML, IFrame , jquery etc.

Check the following link, which shows how to do this using DHTML


http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/dhtmlmodal.htm[^]

Jquery:

http://jqueryui.com/demos/dialog/[^]


这篇关于window.open()javascript方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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