Open a onclick on blank new tab with a input type="button" - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:input button

Description

Open a onclick on blank new tab with a input type="button"

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
 </head> <!--  w  w w.  j  a  v a2 s  .  c  o  m-->
 <body> 
  <input type="button" onclick="javascript:window.open('http://www.java2s.com')" value="Click">  
 </body>
</html>

Related Tutorials