0
使用mailto:
鏈接或Javascript可以讓Chrome在Gmail已打開的標籤中啓動撰寫新電子郵件窗口,而不是打開另一個Gmail「實例」? mailto:
,window.location.href
或window.open(url)
不這樣做mailto鏈接在現有gmail標籤中撰寫
使用mailto:
鏈接或Javascript可以讓Chrome在Gmail已打開的標籤中啓動撰寫新電子郵件窗口,而不是打開另一個Gmail「實例」? mailto:
,window.location.href
或window.open(url)
不這樣做mailto鏈接在現有gmail標籤中撰寫
我不認爲 - 好,我希望不會 - 這是有可能改變一個窗口的URL不是自己開了,或者說你的代碼。
如果你有,你可以使用window.open(url, name
)其中name
是您爲窗口
設置一個唯一的字符串,見一個例子供其使用在this answer
在某些瀏覽器設置target
爲唯一的名稱也適用對於mailto
網址,但不能保證,對於不使用網絡郵件的用戶來說非常煩人。