Pop-Up Window in need of delay?

A

Asterix2XXX

I am trying to create a pop-up window that will remain in front of the
orignal webpage. The pop-up is called as follows:

<script type="text/javascript">
var newWin=null

var winl = (screen.width-208)/2;
var wint = (screen.height-228)/2;

newWin=window.open("URL",'mywindow','left=' + winl + ',top=' +
wint+
',width=208,height=228,toolbar=,menubar=,location=,scroll=,resizable=,status=');

newWin=window.focus(mywindow);
</script>


The webpage that this pop-up is called from is a completely blank page
that calls another website via a frame:

<frameset rows="100%,*">
<frame src="URL" >
<frame src="Untitled">
</frameset>
<noframes>
</noframes>

The reasoning behind this is because I am unable to modify the page
that the frame is calling and a pop-up needed to be loaded in front of
it. The problem is, when this page is run the pop-up comes into focus,
but when the frame called URL is finished loading, the pop-up is pushed
to the back. I cannot seem to find a way to make it focus and I think
that delaying the pop-up from lauching would solve this problem but I
have been unable to properly implement it.

If anyone can help me I would appreciate it.

-Thanks
 
A

Asterix2XXX

Actually, this code works in Firefox. Just not in IE. I'm pretty sure
those are reputable browsers.

I am aware of the antisocialness of pop-ups, but I have no way of
editing the page that is appearing in the frame being called, the page
is hosted by someone else, somewhere else.

But, i do need the pop-up to control this page. I just don't know how
to insert the timing control for the pop-up. And I promise that it is
not for an advertisment.
 
D

David Dorward

Asterix2XXX said:
var winl = (screen.width-208)/2;
var wint = (screen.height-228)/2;
newWin=window.open("URL",'mywindow','left=' + winl + ',top=' +

Popups sized or positioned based on the size of the "screen" are a bad idea.
That one, for example, will appear partially on one of my physical screens
and partially on another... with a three inch gap between the halves.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,059
Latest member
cryptoseoagencies

Latest Threads

Top