Thread: Running Onload
View Single Post
  #2 (permalink)  
Old 08-28-03, 11:12 AM
Shane Shane is offline
Coding Addict
 
Join Date: Jun 2003
Location: Maryland, US
Posts: 268
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Running Onload

Quote:
Originally posted by hari.kara
Can anyone tell me if there is any way of running two or more onload commands at the same time on a single page. And if there is can you show me or direct me in the right direction.

Code:
<html>
<head>
<title>Test</title>
<script language="javascript">
function cmdLoad() {

firstStep();

secondStep();


}

function firstStep() {


}

function secondStep() {


}
</script>
</head>
<body onload="cmdLoad()">

</body>
</html>
__________________
Shane Bauer
Microsoft Certified Professional (MCP) - ASP.NET
ASP/ASP.net, C#, VB/VB.NET, PHP, Perl, SQL
Reply With Quote