
October 31st, 2001, 12:10 PM
|
|
Junior Member
|
|
Join Date: Mar 2001
Posts: 6
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
javascript popup window positions
Hi,
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:
function openit()
{
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?
Most appreciated.
Owen
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 12:39 PM.
|