View Full Version : Popunder/popbehind/popback
Cheap Bastard
April 20th, 2001, 12:57
is there any code (i'm suspecting this would be javascript) that can create a popunder/popbehind/popback upon loading the page?
gyrbo
April 20th, 2001, 13:21
In the code for the popup you would please somthing like
<body OnFocus="parent.focus();">
The code isn't correct I think
Cheap Bastard
April 26th, 2001, 15:45
there must've been more people thinking about this...
lucifer
April 26th, 2001, 17:15
<script language="JavaScript">
popunder=window.open("the url of the page","pop");
window.focus();
</script>
would do it but all unwanted popups are evil
this is only for educational purposes
(I feel like a warez site)
Cheap Bastard
April 27th, 2001, 19:28
is there any way to do it without actually having to re-focus on the main window?
gyrbo
April 28th, 2001, 04:41
Nope. Unless you popup the actual page...
Cheap Bastard
April 28th, 2001, 11:10
i see...
there's only 2 problems with that.
1. you can't actually popup a fully functional window, there's always something missing...
2. popups get closed, so the main window would get closed
3. people without javascript are doomed to never see my magnificence...
thanks anyway though... At least now i know.
lucifer
April 29th, 2001, 18:55
Originally posted by Cheap Bastard
i see...
there's only 2 problems with that.
1. you can't actually popup a fully functional window, there's always something missing...
2. popups get closed, so the main window would get closed
3. people without javascript are doomed to never see my magnificence...
surely that's 3!!
1 you can popup whatever window you want what's missing?
2 the popup and the parent are seperate they don't close together without you making them do so
3. they can't be that magnificent if you're trying to hide them
Cheap Bastard
May 6th, 2001, 10:07
Originally posted by lucifer
surely that's 3!!
1 you can popup whatever window you want what's missing?
2 the popup and the parent are seperate they don't close together without you making them do so
3. they can't be that magnificent if you're trying to hide them [/B]
3? I can't count then... :)
1. never mind. It's just all the popups and popunders i see are always missing something. I haevn't seen one pop with the Menu's (file/edit/view/favorites/tools/help in IE).
Although i did notice when i tried your code (for educational purposes only) that it had the extra ''links'' section i don't usually have :)
2. You got me wrong...
>>>is there any way to do it without actually having to re-focus on the main window?
>>Nope. Unless you popup the actual page...
>popups get closed, so the main window would get closed
3. same thing. People with javascript wouldn't be able to see the main window.
lucifer
May 6th, 2001, 10:58
Originally posted by Cheap Bastard
1. never mind. It's just all the popups and popunders i see are always missing something. I haevn't seen one pop with the Menu's (file/edit/view/favorites/tools/help in IE).
Although i did notice when i tried your code (for educational purposes only) that it had the extra ''links'' section i don't usually have :)
2. You got me wrong...
>>>is there any way to do it without actually having to re-focus on the main window?
>>Nope. Unless you popup the actual page...
>popups get closed, so the main window would get closed
3. same thing. People with javascript wouldn't be able to see the main window.
there is a 3rd parameter to window.open (url,name,bits)
bits can include things like size,position,toolbars,resizable,scroll bars etc you should be able to find something about it it's in the netscape javascript docs which are somewhere at netscape.com amoungst all the other stuff
you have to use focus to get the popunder unless the popunder is your main page and the popup is your site (hope that makes sense)
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.