jeudi 9 février 2017

How to make HTML button show link in browser?

Vote count: 0

When you mouse over a <a> link, the browser will show you where the link will direct you to if you click on it. For example, in IE, you get like a tooltip at the bottom of the IE window showing the link before you click on it.

I have some pages that use <button> instead of <a> like this.

<button onclick="window.open('http://www.google.com/');">Button</button>

However, the problem I'm having is that when you mouse over the button, the browser doesn't give you the same information about where it will take you if you click on it. Is there a way I can achieve this behaviour with a <button>?

asked 26 secs ago

Let's block ads! (Why?)



How to make HTML button show link in browser?

Aucun commentaire:

Enregistrer un commentaire