• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 195
  • Last Modified:

Button as a link

How can I create a button as a link that will take me to a specific page?
0
wariar
Asked:
wariar
  • 2
1 Solution
 
xabiCommented:
Hi there:

<form><input type="button" value="click here" onclick="location.href='foo.htm'"></form>

Xabi
0
 
wariarAuthor Commented:
Thanks! That helps a lot.
0
 
xabiCommented:
From question to answer just 14 minutes :)

xabi
Best regards
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now