You can either define a third function, which would have the sole purpose of calling the other two functions.
Or, you can comma separate the two functions in your onload attribute.
Or, you can concantenate them with the "&&" operator:
<body onload="return (Do_This() && Do_That())" >
(which is a useful construct if the functions return booleans).
Lastly, you can just include the "And_This()" function in a separate script body at the very end of your document. It will run "inline" when the browser encounters it.
tgreer
Made Her Cry
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<script language="javaScript">
function Do_This() {
alert(7);
And_This();
}
function And_This() {
alert(8);
}
</script>
</head>
<body onLoad="Do_This();">
</body>
</html>
rajarajan07
Nearly a Posting Virtuoso
1,447 posts since May 2008
Reputation Points: 167
Solved Threads: 239