Before, I utilized the attribute:
target='_blank' <!-- in HTML -->
However, when it came to JavaScript, I experimented with:
windows.open('my_url' [, args]);
I am looking to open my_url
in a different TAB but encountered an issue as this function opens the URL in a new window.
I also attempted to include arguments like '_blank'
or '_newtab'
, but they did not work.
Is there a solution available to open the URL in a new tab instead of a new window?