Created
November 1, 2022 05:29
-
-
Save cTxplorer/4ee3a0fbf890a0e18ed616ee3a174148 to your computer and use it in GitHub Desktop.
A simple script with a function that opens an URL in new tab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// open an url in new tab | |
function openNewTab(url = '') { | |
window.open(url, 'randomtabname'); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment