搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

running javascript from address bar

more options

"javascript:" urls entered into the address bar don't have access to the page (e.g. window, document, alert). In desktop Firefox, we could use the web console instead. What should mobile users do?

"javascript:" urls entered into the address bar don't have access to the page (e.g. window, document, alert). In desktop Firefox, we could use the web console instead. What should mobile users do?

被選擇的解決方法

Some types of JavaScript scripts can't be run from the Location Bar any longer due to security changes in Firefox 4+ versions, but will run from a saved Bookmarklet. Others won't run even from a Bookmarklet any longer, and need to be run from the Scratch Pad in Web Developer menu.

Sorry, I don't use a Mobile device and don't know in the Web Developer menu is in the Mobile versions of Firefox, but a Mozilla mobile developer will be "in" soon.


If you aren't familiar with what a Bookmarklet is, see this:
http://en.wikipedia.org/wiki/Bookmarklet

從原來的回覆中察看解決方案 👍 0

所有回覆 (1)

more options

選擇的解決方法

Some types of JavaScript scripts can't be run from the Location Bar any longer due to security changes in Firefox 4+ versions, but will run from a saved Bookmarklet. Others won't run even from a Bookmarklet any longer, and need to be run from the Scratch Pad in Web Developer menu.

Sorry, I don't use a Mobile device and don't know in the Web Developer menu is in the Mobile versions of Firefox, but a Mozilla mobile developer will be "in" soon.


If you aren't familiar with what a Bookmarklet is, see this:
http://en.wikipedia.org/wiki/Bookmarklet