IE6 form.action not working

  • Thread starter Thread starter Joe Zendle
  • Start date Start date
J

Joe Zendle

Hi. I'm using the following javascript in IE6 and the call
to set the form action gives an error "Object doesn't
support this property or method". This works fine with
other browsers (netscape, mozilla, etc). Any thoughts?

<script Language="Javascript">

function thisFormSubmit(thisActionString) {
var thisForm = document.ModifyForm;
thisForm.action = thisActionString;
thisForm.submit();
}
 
Joe Zendle said:
Hi. I'm using the following javascript in IE6 and the call
to set the form action gives an error "Object doesn't
support this property or method". This works fine with
other browsers (netscape, mozilla, etc). Any thoughts?

<script Language="Javascript">

function thisFormSubmit(thisActionString) {
var thisForm = document.ModifyForm;
thisForm.action = thisActionString;
thisForm.submit();
}

Is there more to this that you haven't posted? It appears that you are
calling your function before your function definition has been closed (i.e.,
reverse last 2 lines). Also, for cross-browser compatibility, you should
declare a 'type' as well as a language (in your opening script tag). For
example:
<script type="text/javascript" language="JavaScript">
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top