Search
 
SCRIPT & CODE EXAMPLE
 

HTML

buttons in Internet Explorer IE not working

It is not allowed to place a <a> link element inside a <button> element. Some browsers will actually do what you want, and some won't. If you must have a button that acts as a link, there are two solutions:

Style the link

Use only the <a> element and use CSS to style it like a button (which you have indicated you don't want).

Wrap button in form

Wrap the <button> in a <form> and set the link target as the form's action attribute:

<form action="https://www.google.com">
  <input type="submit" value="Google it!" />
</form>
Comment

PREVIOUS NEXT
Code Example
Html :: mdboostrap lazy loading 
Html :: centralize email body 
Html :: hCards 
Html :: star icon angular material 
Html :: Select Options From List Select Box & Remove By Name 
Html :: in line a frame animation 
Html :: twig abs 
Html :: html forn nonvalidate 
Html :: How to start an html 
Html :: sample html code for homepage 
Html :: encode plus sign in url 
Html :: simple landing page html 
Html :: change td color html 
Html :: print tag in html 
Html :: postcss minify 
Css :: css image to white 
Css :: htaccess for angular 
Css :: css resize checkbox 
Css :: how to align absolute element in center 
Css :: css hide text if too long 
Css :: html if text too long newline 
Css :: how to give shadow to navbar 
Css :: 2 lines p css 
Css :: css content space 
Css :: select text-align center 
Css :: css rounded corners 
Css :: focus in styled component 
Css :: css background half one color the other half another color 
Css :: text align justify 
Css :: bring element to front css 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =