Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

Autofocus of tabs through javascript

  • 3 trả lời
  • 1 gặp vấn đề này
  • 14 lượt xem
  • Trả lời mới nhất được viết bởi philipp

more options

Hi,

We have a critical concern in one of the application we are developing. The functionality works perfect on Google Chrome but it doesn’t work on Firefox (or atleast we are not able to make it work).

Below is our scenario:

1. Application is developed in ASP.NET 2. There are 4 menu items (A,B, C and D) on the application. 3. Each menu items has a parameter which displays different set of information on the page. 4. When we click on say A, it take parameter as 1 and opens a tab. When I click on B, it takes parameter as 1 and open a new tab with other set of information, and so on. 5. Now, then I am on B and already have a A tab open, if I click on A Menu on B, it should automatically redirect to A and the focus should shift on A. 6. Current, we are able to reload the A tab with new parameter, but the focus doesn’t shift on that A tab.

Is there anything we are missing? Request you to please help us here.

Jai

Hi, We have a critical concern in one of the application we are developing. The functionality works perfect on Google Chrome but it doesn’t work on Firefox (or atleast we are not able to make it work). Below is our scenario: 1. Application is developed in ASP.NET 2. There are 4 menu items (A,B, C and D) on the application. 3. Each menu items has a parameter which displays different set of information on the page. 4. When we click on say A, it take parameter as 1 and opens a tab. When I click on B, it takes parameter as 1 and open a new tab with other set of information, and so on. 5. Now, then I am on B and already have a A tab open, if I click on A Menu on B, it should automatically redirect to A and the focus should shift on A. 6. Current, we are able to reload the A tab with new parameter, but the focus doesn’t shift on that A tab. Is there anything we are missing? Request you to please help us here. Jai

Tất cả các câu trả lời (3)

more options

hello Jai, for security reasons websites cannot change focus between windows/tabs in firefox by default. you could try to work around that if you set the dom.disable_window_flip preference in about:config to false, but this would have to be done manually by every user of the application...

more options

Hello Philip, I have set the dom.disable_window_flip preference in about:config to false, but the focus doesn’t shift on another tab.

Please help us here...

more options

we probably cannot help you with issues around development in this venue - you might get better feedback when you ask that question on a site like https://stackoverflow.com ...