最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Firefox 6 javascript in addressbar - Stack Overflow

programmeradmin0浏览0评论

Whatever I type after "javascript:" in the address in firefox 6, firebug says "uncaught exception: ReferenceError: document is not defined". If I try window, it says "uncaught exception: ReferenceError: window is not defined."

If I type the same code in the firebug mand line, it works. What gives?

Whatever I type after "javascript:" in the address in firefox 6, firebug says "uncaught exception: ReferenceError: document is not defined". If I try window, it says "uncaught exception: ReferenceError: window is not defined."

If I type the same code in the firebug mand line, it works. What gives?

Share Improve this question asked Sep 10, 2011 at 23:13 mowwwalkermowwwalker 17.4k30 gold badges108 silver badges165 bronze badges 4
  • My coworker had the same issue. Apparently it was a security hole or something. What are you trying to do? – beatgammit Commented Sep 10, 2011 at 23:14
  • Append a fun little JS app to a website. – mowwwalker Commented Sep 10, 2011 at 23:15
  • If it's just you, why not just use firebug? FWIW, I think it still works in Google Chrome. – beatgammit Commented Sep 10, 2011 at 23:16
  • 2 use a bookmarklet instead of js in the address bar – Christian Smorra Commented Sep 10, 2011 at 23:38
Add a ment  | 

1 Answer 1

Reset to default 4

This behavior was filed as a in the Mozilla project and resolved per this bug report.

发布评论

评论列表(0)

  1. 暂无评论