5 Replies - 2467 Views - Last Post: 11 December 2005 - 09:30 AM

#1 Yeoj  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 28
  • Joined: 22-November 05

pop-under window and window sizing

Posted 10 December 2005 - 02:47 AM

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.
Is This A Good Question/Topic? 0
  • +

Replies To: pop-under window and window sizing

#2 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 248
  • View blog
  • Posts: 13,506
  • Joined: 12-July 02

Re: pop-under window and window sizing

Posted 10 December 2005 - 10:04 AM

java script:
window.open(url,'name','height=400,width=200');


Was This Post Helpful? 0
  • +
  • -

#3 Yeoj  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 28
  • Joined: 22-November 05

Re: pop-under window and window sizing

Posted 10 December 2005 - 11:53 AM

perfect, thx much!
Was This Post Helpful? 0
  • +
  • -

#4 Wizzy  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 6
  • View blog
  • Posts: 408
  • Joined: 20-November 05

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>

Was This Post Helpful? 0
  • +
  • -

#5 Yeoj  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 28
  • Joined: 22-November 05

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?
Was This Post Helpful? 0
  • +
  • -

#6 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 248
  • View blog
  • Posts: 13,506
  • Joined: 12-July 02

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:
<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.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1