p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Javascript (http://p2p.wrox.com/forumdisplay.php?f=85)
-   -   two script onLoad (http://p2p.wrox.com/showthread.php?t=7665)

mateenmohd December 27th, 2003 06:51 AM

two script onLoad
 
how can run two scripts onLoad ?

<body onLoad="doText(message)",onLoad="scrollit(100)"></body>




Snib December 27th, 2003 12:09 PM

Hello mateenmohd,

You can separate as many scripts as you wish with commas, and end the onload with a ;

Example:
Code:

<body onload="alert('hi'),alert('hello');"></body>
Snib


mateenmohd December 28th, 2003 12:12 AM

thanks


Quote:

quote:Originally posted by Snib
 Hello mateenmohd,

You can separate as many scripts as you wish with commas, and end the onload with a ;

Example:
Code:

<body onload="alert('hi'),alert('hello');"></body>
Snib




All times are GMT -4. The time now is 09:22 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.