In article <41a360b5.0311211018.460b1afe@posting.google.com >,
jwilson@exeter.edu enlightened us with...[color=blue]
> Please comment on the following test code. I'd like to understand why
> NS will not run this but IE will:
>
> <html>
> <head>
>
> <SCRIPT LANGUAGE="JavaScript">[/color]
deprecated.
<script type="text/javascript">
[color=blue]
> <!--
> function handleClick(){
> var obj = document.getElementById("comment");[/color]
NN4 does not support getElementById()
The comment text element doesn't have an id attached to it anyway, only
a name. I'm surprised IE even handled it. It's a form element with a
name. You didn't give it an id. Even if you did, it's better to use the
forms array.
Use
var obj = document.form1.comment
or
var object = document.forms["form1"].elements["comment"]
--
~kaeli~
A little rudeness and disrespect can elevate a meaningless
interaction to a battle of wills and add drama to an
otherwise dull day.
http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace