弹出窗口打开和关闭onClick,但链接将无法打开 [英] pop up window opens and closes onClick, but link won't open

查看:120
本文介绍了弹出窗口打开和关闭onClick,但链接将无法打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


点击链接后会打开一个弹出窗口。弹出窗口询问问题并提供两个按钮,是和否。按钮是图像,当用户单击按钮时,它们将通过是按钮链接到另一个页面,否则它们将保留在同一页面上单击否按钮。


单击是或否按钮后,弹出窗口应该关闭,但是,它会忽略连接到是按钮的链接。


我使用Dreamweaver为弹出窗口创建代码:

Hi Everyone,

I have a popup window that opens when clicking a link. The pop up window asks a question and supplies two buttons, Yes and No. The buttons are images and when the user clicks the button, they will either be linked to another page via the Yes button or they will stay on the same page if they click the No button.

The popup window is supposed to close once the Yes or No button is clicked, and it does, however, it ignores the link that is attached to the Yes button.

I am using Dreamweaver to create the code for the popup window:

展开 | 选择 | Wrap | 行号

推荐答案

嗨emy我认为问题是你试图在弹出窗口中打开页面,而不是弹出的节目页面,我想如果你像父母那样尝试somenthing,你可以实现你想要的东西.document和操作你想要的任何东西...你也可以显示不是一个弹出窗口而不是你可以为同一目的显示一个div层...这样你可以避免所有弹出窗口阻止程序d所有tha东西..看看google for submodal弹出窗口可以帮助你...看到你...
Hi emy I think that the problem is that you are trying to open the page in your pop up and not in the pages the show the pop up, I think you can achieve what are you looking if you try somenthing like parent.document and manipulate whatever you want... also you can display not a popup itself instead you can show a div layer for the same purpose... this way you can avoid all popup blocker and all tha stuff.. look into google for submodal popups can help you... see you around...


Heya,Amy。欢迎来到TSDN!


发布源代码时请使用CODE标签。请在下次发布时查看页面右侧的REPLY GUIDELINES。
Heya, Amy. Welcome to TSDN!

Please use CODE tags when posting source code. See the REPLY GUIDELINES on the right side of the page next time you post.


感谢您的回复,但我忘了提到它适用于IE,但不适用于Firefox或Netscape。有什么原因导致它没有进入Firefox和Netscape的链接?我确实有target_blank,所以我不打算在弹出窗口的同一个窗口中打开链接页面....


谢谢!!
Thanks for the reply, but I forgot to mention that it works in IE, but not Firefox or Netscape. Any suggestions as to what is causing it to not go to the link in Firefox and Netscape? I do have target_blank, so I am not trying to open the linked to page in the same window as the popup....

thanks!!


这篇关于弹出窗口打开和关闭onClick,但链接将无法打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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