[Javascript] onreset functionality in MS/IE

Ron Wingfield rtwingfield at archaxis.net
Fri Jan 14 11:57:02 CST 2005


The following code is lifted straight out of David Flanagan's book, JavaScript, the Definitive Guide, p.251, O'Reilly and Associates, 2002. 

  <form. . .
        onreset="return confirm('Really erase ALL data and start over?')"
  >

This is the actual code from the "show source" editor:   (. . .looks OK to me.)

  <form 
     method="get" 
     action="applications_01.pl" 
     enctype="application/x-www-form-urlencoded" 
     onreset="return confirm('Really erase ALL data and start over?')" 
     name="vendors_01.pl">

MS/IE v6.0.2800.1106 (running under Windows-98) returns the following error:

  Error:  Object doesn't support this property or method.

So, . . .is this a browser problem?

OTTF,
Ron Wingfield

FreeBSD 4.8  --  Apache http 2.0.28 -- MySQL client/server 4.1.7
Perl 5.8.5 -- p5-DBD-mysql-2.9004 driver -- p5-DBI-1.46
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20050114/308ca058/attachment.htm>


More information about the Javascript mailing list