This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Add a link to submit button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Add a link to submit button " Watch "Add a link to submit button " New topic
Author

Add a link to submit button

shivang sarawagi
Ranch Hand

Joined: Jun 19, 2008
Posts: 148
I want to navigate to another page when i click the submit button. Can anyone help me in this, how do i do it ??

below is my code

Rajkamal Pillai
Ranch Hand

Joined: Mar 02, 2005
Posts: 445
    
    1


Use Document.href to load a different page.

Note: Not sure if this is deprecated.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63208
    
  69

Clicking the submit button will submit the form to the URL specified by the action. If that's not what you want, don't use a submit button in the first place.

Perhaps you can explain more about what you are really trying to accomplish?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Add a link to submit button
 
It's not a secret anymore!