Typing URL address during loading of web pages - issue

Discussion of general topics about Mozilla Firefox
Post Reply
Kenny Leong
Posts: 121
Joined: July 8th, 2004, 10:07 pm

Typing URL address during loading of web pages - issue

Post by Kenny Leong »

Hi folks. Maybe this has been discussed before. But anyway, I often encounter a problem when typing URL addresses in the URL box DURING the loading of a web page. The issue is - when I'm typing a URL address (in the URL box), the URL box will lose focus when the web page (that is currently being loaded) finishes loading. For example.....I might visit yahoo.com, which may take a few moments to finish loading all the contents.

Now, during the loading of the web page (ie before it finishes loading)......if I try to type another URL address, the web browser would usually lose focus on the URL box WHEN the current web page finishes loading all its contents. Is there a setting in firefox that halts the loading of web pages once we begin to type characters in the URL bar? Thanks a lot!
User avatar
SK.
Moderator
Posts: 20814
Joined: October 18th, 2007, 1:28 pm
Location: Third Rock From The Sun
Contact:

Re: Typing URL address during loading of web pages - issue

Post by SK. »

I do not believe there is any setting to control that. My recommendation is to start a new tab when you want to go to another site. That will prevent Firefox from updating the address bar.
John 3:16 and Philippians 4:13
User avatar
dickvl
Posts: 54145
Joined: July 18th, 2005, 3:25 am

Re: Typing URL address during loading of web pages - issue

Post by dickvl »

Those site use a onload directive to set focus to a search field:
See http://kb.mozillazine.org/Security_Poli ... m_focusing

For specific sites:
user_pref("capability.policy.policynames", "nofocus");
user_pref("capability.policy.nofocus.sites", "http://www.google.com http:://www.yahoo.com");
user_pref("capability.policy.nofocus.HTMLInputElement.focus", "noAccess");

For all sites:
user_pref("capability.policy.default.HTMLInputElement.focus", "noAccess");)
Kenny Leong
Posts: 121
Joined: July 8th, 2004, 10:07 pm

Re: Typing URL address during loading of web pages - issue

Post by Kenny Leong »

Thanks very much for your kind information SK and VL ! Very much appreciated.
User avatar
dickvl
Posts: 54145
Joined: July 18th, 2005, 3:25 am

Re: Typing URL address during loading of web pages - issue

Post by dickvl »

You're welcome
Kenny Leong
Posts: 121
Joined: July 8th, 2004, 10:07 pm

Re: Typing URL address during loading of web pages - issue

Post by Kenny Leong »

That setting has been working excellently. Thanks a lot!
In the "user.js" file in the Profiles directory, I used this line (as recommended in this thread) to stop web pages from taking focus away from URL address bars ...

user_pref("capability.policy.default.HTMLInputElement.focus", "noAccess");)

..... and then, later, if for some reason you want to undo that.... then just replace the above line with :

user_pref("capability.policy.default.HTMLInputElement.focus", "allAccess");)

I'm going to leave it as "noAccess" from now on! Thanks again.
Post Reply