codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Window.open and pop up blocker  steph2004 at 18:47 on Thursday, December 02, 2004
 

Hi,

I have a contact page which is opening in a new window using window.open. Since this is called when the user clicks a link, pop up blocker don't block it.

However, I want to show a survey after this window has been closed. I find nothing else but to use window.open. But this time, I use the onunload tag in the opened window. This is blocked by pop up blockers.

Is there a way to print my survey, whatever it is, from a window opened by the user and poping on the onunload event?

Thanks for any idea,

Stephane

  Re: Window.open and pop up blocker  tgreer at 19:02 on Thursday, December 02, 2004
 

Options:

1) Show the survey in the already opened window.
2) In the main window, show a link to the survey, so users can choose to fill it out or not.
3) Have the child window write the survey into a <div> in the parent page, via a script, before closing itself with self.close().
4) Have the script that opens the child window ALSO write the survey to the main window.
5) Have the script that opens the child window, open TWO child windows.

and so on. In short, don't use the onunload event handler at all.










CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: Computer Name in Web page
•  Re: how read floating data from notepad and analysis it
•  Re: SQL query from VB to Access Database
•  Re: C++ Beginner question
•  Re: FREE TV on your PC!
•  Re: interview problem
•  Set Focus To Applications that are running
•  Re: need help in JAVA
•  Re: iframe problem


Recent Articles
Multiple submit buttons with form validation
Understanding Hibernate ORM for Java/J2EE
HTTP screen-scraping and caching
a javascript calculator
A simple way to JTable
Java Native Interface (JNI)
Parsing Dynamic Layouts
MagicGrid
Caching With ASP.Net
Creating CSS Buttons


Site Survey
Help us serve you better. Take a five minute survey. Click here!

© Copyright codetoad.com 2001-2005