How to fix window.open(url) opening two tabs

#javascript #tip:

How to fix window.open(url) opening two tabs


window.open(‘url’) may open double tabs when clicked in IE/FF/etc. Google Chrome is superior and is the first one to bring the latest updates from the W3C announcements, in my opinion! Browsers may behave differently for “window” functions.
Prefix “javascript:” for getting standard implementation output.

use javascript:window:open(‘url’) instead


Leave a Comment