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

Javascript alerts dont work in responsive design mode

more options

Hi,


When working in responsive design mode, using javascript alert() doesn't do anything.

This is really frustrating for debugging and sometimes I think that the page is cached or something else is wrong before I remember alerts just do not work in responsive design mode.

So now everytime I test my sites for mobile I use chrome, which sucks because I hate chrome and want to use firefox.

What is the reasoning behind this? I'm sure alerts work on mobile, so why when im emulating mobile will they not work.

Please can we get this added into firefox.


Thanks,

Trent

Hi, When working in responsive design mode, using javascript alert() doesn't do anything. This is really frustrating for debugging and sometimes I think that the page is cached or something else is wrong before I remember alerts just do not work in responsive design mode. So now everytime I test my sites for mobile I use chrome, which sucks because I hate chrome and want to use firefox. What is the reasoning behind this? I'm sure alerts work on mobile, so why when im emulating mobile will they not work. Please can we get this added into firefox. Thanks, Trent

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

more options

Hi Trent, I haven't heard of this before. Maybe it's a change in Developer Edition??

I suspect you won't get an explanation or fix here, and suggest you pose your question on the DevTools forum:

https://discourse.mozilla.org/c/devtools