Friday, 31 October 2014

How to open an URL in a new window in Javascript

If you want to open a web page on another window using javascript, just use the method open of the object window.
Very useful to keep users on your web site
Example
Just add the line
  window.open("http://devhelpers.blogspot.ca");
Inside a <script> tag