PDA

View Full Version : calling a function? document.write


Zer0_II
12-25-2002, 07:27 PM
I'm very new to javascript. I'm trying to figure out the different ways that you could call document.write in the body of the html document. This is what I have, but what are some various ways of calling the function.

<head>
<script langauge="text/javascript">
function write()
{
document.write("hello world")
}
</script>
</head>

TIA

Borgtex
12-25-2002, 09:44 PM
put:
<script>write()</script>

where you want the text to appear

Zer0_II
12-25-2002, 10:19 PM
I'm not sure if it is customary to thank people in this forum, in some it is considered padding your post count... but thanks Borg.

Zer0