[thelist] [TIP] Safari JS tip

Joshua Olson joshua at waetech.com
Wed May 4 21:13:53 CDT 2005


<tip type="Javascript" author="Joshua Olson">

Here's a function to get the value of the action attribute for a form via JS
that is compatible with Safari:

    function formAction(form)
    {
      try {
        return form.attributes.action.value;
      }
      catch(e)
      {
        return form.getAttribute('action');
      }
    }

</tip>

<><><><><><><><><><>
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