• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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?
 
So it takes a day for light to pass through this glass? So this was yesterday's tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic