open link in new tab javascript window.location code example Example: javascript window.location new tab window.open('https://example.org', '_blank');