ロケーションバーをクリックすると全選択になるようにする。
(function MyLocationBar() { /* LocationBar をクリックすると全選択。 キーボードショートカットなら全選択になるが、クリックだとならないので。 */ var locationbar = document.getElementById("urlbar"); locationbar.addEventListener('focus', function(){ this.select(); }, true); })();