Click to See Complete Forum and Search --> : popuponce


mhlangensiepen
12-16-2002, 11:08 PM
I am using the popuponce cookie/java code but have 2 problems.

I'd like to be able to control the position of the popup window and I'd l;ke it to always pop in front of the main website page.

Can anybody help?

mhlangensiepen
12-17-2002, 04:49 PM
Excellent! - thanks!

mhlangensiepen
12-17-2002, 07:25 PM
Sorry about this but the last time I programmed it was in QuickBasic 4.5!

I am unsure of the syntax of the focus command that you gave me and have tried variations but they don't seem to work. The document name I am trying to pop in front is introduction.htm - can you give me the correct syntax for the focus command and do I put the command in introduction.htm or index.htm?

gil davis
12-17-2002, 08:37 PM
Dave:
IE will not focus() to a window while it is loading. If you use window.open(somepage,somename,features) on an existing window that does not already have focus, it will not come into focus automatically. Maybe that is what's not working.

Assuming you are still in the same domain, you may have to add an onload command to do the focus().

mhlangensiepen
12-18-2002, 06:43 AM
The home page is a frame setup page which then loads blank sidebars, a top frame and a mainframe (in that order). I have tried changing the focus once the mainframe has loaded but the popup page loads first and then the main frame. Any ideas? I have tried using onload without any luck.