window.open use code example
Example 1: javascript open url
window.location.href = "http://example.com/";
Example 2: window open method for browser detection
browser detection and version dectaction in js
window.location.href = "http://example.com/";
browser detection and version dectaction in js