[Javascript] span section
Andrew Gibson
andyg at ihug.co.nz
Mon Nov 11 14:34:02 CST 2002
You probably need to use an onload event
<body onload=javascript:writeIt()>
then
function writeIt()
{
document.getElementById("mySpan").innerHTML="Whatever" ;
}
Subject: [Javascript] span section
> If I create a span section i the <body>:
>
> <html><head>
> <script>
> var textToInsertSpan = "Some text"
> document.spanName?????????????? = textToInsertSpan
> </script>
> </head><body>
> <span name="spanName">
> </span>
> </body></html>
>
> how using JavaScript in the <head> section put text into <span>
> sect.?
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
More information about the Javascript
mailing list