Call Javascript window.open to load new URL in new tab in input button - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:input button

Description

Call Javascript window.open to load new URL in new tab in input button

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
 </head> <!--from ww  w.j  av  a  2 s  .  c o  m-->
 <body> 
  <input type="button" value="Two Players" onClick="window.open('http://java2s.com');">  
 </body>
</html>

Related Tutorials