aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Adding a link to a a button in a form without Javascript 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 "Adding a link to a a button in a form without Javascript" Watch "Adding a link to a a button in a form without Javascript" New topic
Author

Adding a link to a a button in a form without Javascript

jay donald
Greenhorn

Joined: Feb 09, 2006
Posts: 20
Hello,

The title says it all. I would like to create a link for a button which is a part of a form so that if you click on it it takes you to a new url (for example: www.google.com) without having to use Javascript pop window. It works with a simple text like:

but if i try to achieve the same with a button, it doesn't work.

There are other buttons in this form as well, so i can't make this "submit" button because i don't want to submit the form.
I know how to do it in Javascript but was wondering if i can achieve the same thing with pure HTML. Thanks for your time .

Jay

[ November 13, 2006: Message edited by: jay donald ]
[ November 13, 2006: Message edited by: jay donald ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61437
    
  67

without having to use Javascript pop window


Huh? What does a "pop window" have to do with links and buttons?

Are you trying to avoid JavaScript completely?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Adding a link to a a button in a form without Javascript