homepage Welcome to WebmasterWorld Guest from 54.242.126.126
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Google / Google AdWords
Forum Library, Charter, Moderators: buckworks & eWhisper & skibum

Google AdWords Forum

    
popup(back) window
popup window in the background
turbo

10+ Year Member



 
Msg#: 1089 posted 2:09 pm on Aug 28, 2003 (gmt 0)

I would like to have -->a popup window loaded in the _background_<-- when my webpage loads.
By doing this I could have another page loading there while the "front/first" page is loaded.

I have been searching everywhere for this but it seems like I'm searching on the wrong things - or isn't it possible?

To make it even clearer, I want the focus to be on the big page and the popup window in the background (no focus).

Can someone help me with this? Would really appreciate it!
Thanks for taking time reading my question...

 

mcavic

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 1089 posted 2:21 pm on Aug 28, 2003 (gmt 0)

I've never done one, but it's called a pop-under. Adwords disallows them just like popups.

MonkeeSage

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 1089 posted 2:25 pm on Aug 28, 2003 (gmt 0)

Hi turbo, this is easier than might be expected. :)

In the head of the page (<head>):
<script type="text/javascript">
<!--
function pop() {
// open a popup
window.open('somepage.htm','','');
// focus this window again
self.focus();
}
//-->
</script>

Then in the body of the page (<body>):
<script type="text/javascript">
<!--
// get around some popup blockers
window.setTimeout('pop()',50);
//-->
</script>

Hope that helps
Jordan

========

Actually, the second script block can be omitted and just use the onload attribute of the body tag like so:
<body onload="window.setTimeout('pop()',50);">

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Google / Google AdWords
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved