1
您好我想打開使用JavaScript新標籤窗口不改變瀏覽器設置如何在新標籤中使用javascript打開窗口,不改變瀏覽器設置
下面是一段代碼,我寫大道BT ..對於我需要修改IE設置爲「Internet Explorer的決定彈出式廣告應該如何打開」
function open_in_new_tab(url)
{
window.open(url,'_blank');
}
您好我想打開使用JavaScript新標籤窗口不改變瀏覽器設置如何在新標籤中使用javascript打開窗口,不改變瀏覽器設置
下面是一段代碼,我寫大道BT ..對於我需要修改IE設置爲「Internet Explorer的決定彈出式廣告應該如何打開」
function open_in_new_tab(url)
{
window.open(url,'_blank');
}
function open_in_new_tab(url)
{
var win=window.open(url, '_blank');
win.focus();
}
Open a URL in a new tab (and not a new window) using JavaScript
我認爲這是不可能打開一個新標籤,而不是一個新的窗口,窗口不改變瀏覽器設置。
'window.open()'有點老土,你爲什麼不使用情態動詞? – slash197
看看這裏的答案http://stackoverflow.com/questions/4907843/open-url-in-new-tab-using-javascript –