how to open a new tab with a url in javascript code example Example: javacript open url in new tab window.open(url,'_blank'); window.open(url);