homepage Welcome to WebmasterWorld Guest from 54.211.73.232
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque

Webmaster General Forum

    
Javascript 2 onload commands
isaaclloyd

5+ Year Member



 
Msg#: 7964 posted 10:20 am on Feb 26, 2005 (gmt 0)

Is it possible to do:

onload=init;
onload=pop-up;

in javscript?

I got a script that needs "onload=init;" after it to work but I also need onload=pop-up; the onload call functions. Any thoughts or seggestions would greatly be apreciated. Thanks.

~Isaac~

 

kazecoder

10+ Year Member



 
Msg#: 7964 posted 7:44 pm on Feb 28, 2005 (gmt 0)

I don't think you can do multiple onload()'s but there are other events you can use. Try maybe using something like onfocus but the downfall of that is if they go to another window and back if will trigger that even again. But you could probably script something to only do it once.

rocknbil

WebmasterWorld Senior Member rocknbil us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 7964 posted 12:50 am on Mar 1, 2005 (gmt 0)

Sure you can,

<body onload="action1(); action2(); action3();">

but I can guarantee you whatever you're doing with it it's not likely your visitors will like it much, especially by the description. :-)

I've always wanted to do

<body onload="humbleThankYou(); serveVisitorDrink();">

But I don't think the technology is there yet.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Webmaster General
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