0

I'm trying to navigate backward to a file in the parent directory using a button as a link.

<a href="../index.php"><input type="button" value="Back"></a>

For some reason that code works on all the other browsers like Chrome, Firefox, Safari, Opera, but it doesn't work in InternetExplorer. So does anyone know why or is there some workaround?

Adrao
  • 412
  • 5
  • 18

1 Answers1

0

So does anyone know why or is there some workaround?

You may try like this which may serve as a work around:

<input type="button" value="google.com" onClick="javascript:location.href = 'http://google.com';" />

Also check out <button> not working in IE8

Community
  • 1
  • 1
Rahul Tripathi
  • 168,305
  • 31
  • 280
  • 331