open a link in a new tab in the same window
Posted
by encryptor
on Stack Overflow
See other posts from Stack Overflow
or by encryptor
Published on 2010-05-11T06:18:23Z
Indexed on
2010/05/11
6:24 UTC
Read the original article
Hit count: 270
Hi I am making a firefox extension which needs to open a link in anew tab in the same window of firefox. How should i do this? This opens in a new window (replacing the old window):
window.location = url;
This opens in the same tab
window.content.document.location = url
Any idea on how to open the url in a new tab?
© Stack Overflow or respective owner