Join the AMA (Ask Me Anything) with Firefox leadership team to talk about Firefox priorities in 2024. Mark your calendar! Thursday, June 13, 17:00 - 19:00 UTC.

Претражи подршку

Избегните преваре подршке. Никада од вас нећемо тражити да зовете или шаљете поруке на број или да делите личне податке. Пријавите сумњиве радње преко „Пријавите злоупотребу” опције.

Learn More

running javascript from address bar

  • 1 одговор
  • 1 има овај проблем
  • 157 прегледа
  • Последњи одговор послао the-edmeister

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