how to get target blank in window.location js code example Example: javascript location href target _blank window.open('http://www.google.com', '_blank');