php - Rick-click tabs doesn't work on Internet Explorer -
we have css buttons. in chrome , other browsers, when right-click on button expected options: open in new tab, open in new window, etc....
however, in internet explorer, when right-click, it's not normal right-click/open in new tab menu. instead says, (undo, cut, copy, paste, delete, select all, inspect element).
the html looks this:
<a href="http://www.example.com/button_link.php"><button class="my-button">click here</button></a>
and css looks this:
.my-button { border: 1px #000000 solid; line-height: 1.1em; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; background: #eef0f1 repeat-x url("data:image/png;base64,___base_64_stuff_here_____"); }
any thoughts why have option "open in new tab" chrome, opera, others not internet explorer?
thanks in advance....
putting button
inside anchor
tag doesn't make sense.
there several ways can this. 1 of them use javascript. can use plain javascript achieve this:
<button class="my-button" onclick="window.location.href='http://www.example.com/button_link.php';">click here</button>
another method make link button using css , rid of button
tag completely.
Comments
Post a Comment