是否可以使用Google Chrome瀏覽器擴展程序或Safari擴展程序突出顯示URL欄(將焦點設置爲位置欄)?使用Chrome瀏覽器和Safari擴展程序突出顯示URL欄
使用Firefox擴展,可以突出地址欄是這樣的:
var addressBar=document.getElementById('urlbar');
addressBar.focus();
addressBar.select();
我不知道是否有在Chrome和Safari瀏覽器類似的功能。
在此先感謝您的幫助!
謝謝你的回覆! Google Chrome限制將焦點設置到網址欄的功能太糟糕了。你有關於Safari的任何想法?我無法在[documentation]中找到任何內容(http://developer.apple.com/library/safari/#documentation/Tools/Conceptual/SafariExtensionGuide/Introduction/Introduction.html)。 – Kevin
同上Safari。它不會讓擴展名混淆地址欄。 – canisbos
好的,很高興知道。謝謝你們倆! – Kevin