Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

document.form.action not allowed? 1

Status
Not open for further replies.

XgrinderX

Programmer
Mar 27, 2001
225
US
Hey everyone,

I have a weird thing going on here and hoped someone could shed some light on it. The following code:

Code:
alert(document.frmMessage.fid.value);
document.frmMessage.action = "messageContacts.asp";

produces an alert telling me the value of fid BUT fails on the attempt to set the action. It only does this in IE. The failure message is:

A runtime error has occurred.
Line: 210
Error: Object doesn't support this property or method.

What's going on here? I've double checked to make sure my form is only declared once and that it is properly closed. Why would IE throw this error but Firefox runs the code with no errors?

-Greg
 
Holy crap BillyRay.....thanks so much! I probably would have spent a whole other day messing with this and STILL may have never figured that out. So obvious, yet so subtle.

THANKS!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top