Question:
HTML: popup window problem?
anonymous
2009-05-28 19:53:08 UTC
Hello everyone,
So, I'm just about done with this website. In this website I have three links. all with their own, individual popup html

example:


it's all HTML, no CSS.

Here's my problem. Say I click on one of the three links...
it gives me the popup. NOW, when I go to click my OTHER link (while that window is still open) it inherits the window size! so I have a PDF document that gets viewed in a TINY 200 or so px space.

How can I stop my html from inheriting the popup window from before? (by the way, it ONLY happens with the previous popup window is open).

Any help guys would be AWESOME, thanks!
Three answers:
anonymous
2009-05-29 00:33:10 UTC
In addition, some nice little online tools for popup codes:



http://www.hypergurl.com/newwindow.html

http://www.wilsoninfo.com/pop_gen.html

http://www.freewebmasterhelp.com/tools/popup/

http://www.hypergurl.com/newwindow.html

http://www.dynamicdrive.com/dynamicindex8/popwin.htm

http://javascript.internet.com/generators/popup-window.html



Hope I didn't repeat myself. LOL



Ron
?
2016-11-07 07:17:55 UTC
I even have 0 pop-united statesand that i've got under no circumstances had difficulty with them what you're able to desire to do is here: a million. set up Mozilla Firefox - click on kit > innovations > content cloth and tick the container on the precise "Block popup living house windows" 2. obtain advert-conscious 2007 and AVG Anti-undercover agent ware they're unfastened anti-undercover agent ware courses do an entire test with the two and delete what they locate and do a quickly test with them as quickly as each week 3. set up a superb firewall living house windows firewall is vulnerable a good unfastened one is Zonealarm this ought to pass away you pop-up and advert unfastened
CrazyHorse
2009-05-28 21:23:45 UTC
Hi Reticon.



The reason that's happening is because the browser only sets your popup window's width and height when it first opens the popup. If you try to open a 2nd window, the browser notices you still have the first one open, and simply uses that one. Basically, your browser throws out the width and height of the 2nd popup at that point.



As a workaround, you could lock down your windows so that if a popup is opened, the user CANNOT click on anything from the parent window until they close the 1st window.



Try this as an example and see if this would work for you:

Create 3 HTML pages, then copy and paste the following code into each page:







s.html









show popup window




close popup window



















p.html









show popup window




close popup window



















w.html









show popup window




close popup window









Good luck!


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...