October 31st, 2001, 01:10 PM
I've been looking through these forums for a way to position a popup a little bit OFF the page.
Here is the script I have now:
newWindow = window.open('buy10.html', 'myWindow','width=720,height=300,top=-20,left=0');
I was attempting to position a popup window so that the very top part of the window would be out of reach of the cursor. If that couldn't work, I was thinking to position the the right side close button/vertical scroll bar section to the right of the screen.
Can anyone help?
Oh yeah, additionally, after my popup comes up (it turns on when someon either refreshes, moves to a new url, or closes the main window), I want it to show up on the bottom side if the main window is still open. How do I manage to do that? Add a refresh script after the popup script in the page? Can someone show me the code for doing this? More or less, I'm trying to create a "pop under".
Last edited by owen; October 31st, 2001 at 01:39 PM.
October 31st, 2001, 04:51 PM
You could use the window.moveBy(x,y) method to move it where you want.
Place it in the onLoad handler.
- ALL the newspapers on ONE site.
- Free Web Based Email Client.
November 1st, 2001, 10:24 AM
Thanks for your time. I appreciate your help. I had gotten it to work, however my boss found the code to make it pop under so that was the preferred event.
Oh well. In case anyone's interested, here is the code that was sent to me:
<!-- POPUNDER BEGINS -->
pu = window.open("xxx.html", ´myWindow´,´width=720,height=300,left=150,top=150´);