View Single Post
Old 04-21-2013, 10:59 PM  
harvey
Confirmed User
 
harvey's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
Quote:
Originally Posted by EddyTheDog View Post
Can you do an onload popup?
yes you COULD, but I think most browsers nowadays disable window.open without a click. Anyway, here's a simple code:

Code:
<script type="text/javascript">
function pop()
{
    poppy = window.open("http://www.gfy.com", "mywindow", "location=1,status=1,scrollbars=1,width=1000,height=800");
    poppy.moveTo(0, 0);
}
</script>
<body onload="javascript: pop()">
JQuery version:

Code:
$(function(){ 
    window.open(url, windowName[, windowFeatures]); 
});

OR you can get creative and add a DOM to trigger events via JQuery with some delay. There are many ways, I used some pretty shitty code some years ago to open several pages by using a... FORM element!
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth
harvey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote