I was wondering about a way i could make an on-load pop-under window, i tried a few scripts, but errors in them always occured.
also, i was wondering if there was a way to modify the size of that window.
pop-under window and window sizing
Page 1 of 15 Replies - 2190 Views - Last Post: 11 December 2005 - 09:30 AM
Replies To: pop-under window and window sizing
#2
Re: pop-under window and window sizing
Posted 10 December 2005 - 10:04 AM
java script:
window.open(url,'name','height=400,width=200');
#3
Re: pop-under window and window sizing
Posted 10 December 2005 - 11:53 AM
perfect, thx much!
#4
Re: pop-under window and window sizing
Posted 10 December 2005 - 01:06 PM
Quote
I was wondering about a way i could make an on-load pop-under window
That only answered 1/2 of the question.
To make the pop up load when the body loads do something like this:
<html>
<head>
<title>PopUp Window</title>
</head>
<body onload="window.open('http://www.dreamincode.net','DreamInCode','height=800,width=600');">
<h1>PopUp Window</h1>
</body>
</html>
#5
Re: pop-under window and window sizing
Posted 11 December 2005 - 02:49 AM
yes, that's better. but how do you get windows to go under main windows?
#6
Re: pop-under window and window sizing
Posted 11 December 2005 - 09:30 AM
Are you referring to having the pop up window be 'behind' the window that opened it? If so, then I'd suggest a small modification...in the head tags, write a small function:
Here is a little article on popup windows that you may find usedful.
<head>
<script = "javascript">
var newwindow;
function winPop(url)
{
newwindow=window.open(url,'name','height=400,width=200');
window.focus(); //for main window focus
//newwindow.focus(); //uncomment for new window focus
}
</script>
</head>
<body onload="winPop();">
<h1>PopUp Window</h1>
</body>
Here is a little article on popup windows that you may find usedful.
Page 1 of 1
|
|

New Topic/Question
Reply


MultiQuote




|