R
richk
<html>
<head>
<title>Untitled</title>
<script language="Javascript">
<!--hide me from older browsers
var seconds_per_minute=60;
var minutes_per_hour=60;
var hours_per_day= 24;
var seconds_per_day=
seconds_per_minute*minutes_per_hour*hours_per_day;
// end hiding stuff-->
</script>
</head>
<body>
<h1>Do you know how many seconds are in a day</h1>
<h2>I Do!</h2>
<h1>My calculations show that</h1>
<script language="Javascript">
<!--
window.document.write("there are");
window.document.write(seconds_per_day);
window.document.write("seconds in a day.")
//-->
</script>
</body>
</html>
this is a simple script I know..But i have a question why are the
Write commands lines in a separate script. Can they be out in the
first script, if not why..The second script has something to do with
the first one..
<head>
<title>Untitled</title>
<script language="Javascript">
<!--hide me from older browsers
var seconds_per_minute=60;
var minutes_per_hour=60;
var hours_per_day= 24;
var seconds_per_day=
seconds_per_minute*minutes_per_hour*hours_per_day;
// end hiding stuff-->
</script>
</head>
<body>
<h1>Do you know how many seconds are in a day</h1>
<h2>I Do!</h2>
<h1>My calculations show that</h1>
<script language="Javascript">
<!--
window.document.write("there are");
window.document.write(seconds_per_day);
window.document.write("seconds in a day.")
//-->
</script>
</body>
</html>
this is a simple script I know..But i have a question why are the
Write commands lines in a separate script. Can they be out in the
first script, if not why..The second script has something to do with
the first one..