Open a link in New Window using JavaScript

By | June 25, 2014

<script language=”JavaScript”>
 function openNewWindow() {
window.open(“http://www.google.com”,”,’width=1024,height=768′);
 }
 </script>

 And the following in the link:

<a href=”javascript:openNewWindow();”>return to front page</a>

Leave a Reply

Your email address will not be published. Required fields are marked *