-6

Hello I'm trying to code a calculator for fun and I was wondering how to make an html button not a hyperlink and the button when you click it will bring you to another html page in that folder.

Thanks, lions

1 Answers1

0

The easiest way to achieve this is to put the button into a form like this:

<form action="stackoverflow.com">
     <input type="submit" value="Button Text">
</form>
prompteus
  • 1,051
  • 11
  • 26
  • No I want it to go into the local folder and I want it to be universal so that you don't have to specify the directory when you use it – Lions654321 Sep 26 '15 at 17:56
  • Do you mean using relative paths? Here is a nice website about it: http://www.coffeecup.com/help/articles/absolute-vs-relative-pathslinks/ – prompteus Sep 26 '15 at 20:38