This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes object doesn't support this property or method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "object doesn Watch "object doesn New topic

object doesn't support this property or method

Gireesh Mulage
Ranch Hand

Joined: Mar 08, 2010
Posts: 44
hi All ,

In JSP page , i have 2 button in which one is of type 'submit' and other is of 'button' . In the form action , i am putting one action for one button . And for other button , i am using document.forms[0].action="";

Now if i click on button it is giving error called object doesn't support this property or method .
And for other one whose action path is added as a action attribute with form is working fine .

Please help me on this .....
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Sounds like you named your button "submit" which overrides document.formName.submit(). Rename your button to "btnSubmit".

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63870

Never name anything "submit".

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: object doesn't support this property or method
It's not a secret anymore!