[thelist] [JS] Safari 1.0.3 on OSX 10.2.x and JS

Joshua Olson joshua at waetech.com
Thu May 5 07:30:37 CDT 2005


> -----Original Message-----
> From: Sam Foster
> Sent: Thursday, May 05, 2005 12:16 AM
> 
> ><input type="submit" onclick="this.form.attributes.action.value =
> >'newpage.html'">
> >
> >This doesn't seem to make any change to the form's action in 
> Safari and the
> >form submits to the original value of the action attribute.
> >
> >  
> >
> What's wrong with this.form.action ? That's always worked, and should 
> continue to for the forseable.

Sam,

form.action.value is potentially ambiguous--eg, you have an element named
"action".  It's considered best-practice to use the "attributes" collection
when modifying the attributes within the form tag and the "elements"
collection when referring to form elements.

<><><><><><><><><><>
Joshua L. Olson
WAE Tech Inc.
http://www.waetech.com/
Phone: 706.210.0168 

Monitor bandwidth usage on IIS6 in real-time:
http://www.waetech.com/services/iisbm/




More information about the thelist mailing list