T
Trevor L.
I have a script which generates the date. (I could attach
it but it is straightforward for those who know
JavaScript)
How do I call this from the HTML code inside the <body>
tag,
e.g.
<p>Welcome. Todays date is XXXXXXXXXXXX </p>
What to do I put in place of XXXXXXXXXXXX to display the
date?
At the moment I am putting the entire script. This is a
bit of overkill.
The code looks like this
<html>
<head>
</head>
<body>
<p>Welcome. Todays date is
<script language="JavaScript">
<!--
(the script goes in here)
//-->
</script>
</p>
</body>
</html>
The result is
Welcome. Todays date is Friday, January 21, 2005
it but it is straightforward for those who know
JavaScript)
How do I call this from the HTML code inside the <body>
tag,
e.g.
<p>Welcome. Todays date is XXXXXXXXXXXX </p>
What to do I put in place of XXXXXXXXXXXX to display the
date?
At the moment I am putting the entire script. This is a
bit of overkill.
The code looks like this
<html>
<head>
</head>
<body>
<p>Welcome. Todays date is
<script language="JavaScript">
<!--
(the script goes in here)
//-->
</script>
</p>
</body>
</html>
The result is
Welcome. Todays date is Friday, January 21, 2005