Wrox Programmer Forums
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 27th, 2003, 06:51 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 518
Thanks: 0
Thanked 0 Times in 0 Posts
Default two script onLoad

how can run two scripts onLoad ?

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



 
Old December 27th, 2003, 12:09 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

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

 
Old December 28th, 2003, 12:12 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 518
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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






Similar Threads
Thread Thread Starter Forum Replies Last Post
Onload with AJAX Baco Intro Programming 0 June 11th, 2007 12:46 PM
onload function calll tannu Ajax 1 November 21st, 2006 01:15 PM
onLoad functionality NEO1976 Javascript 0 May 23rd, 2006 09:38 AM
iframe onLoad darkhalf Javascript 1 January 11th, 2006 04:42 PM
audio onLoad Larson HTML Code Clinic 2 February 21st, 2004 12:39 AM





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