Firefox 6在地址栏中的JavaScript [英] Firefox 6 javascript in addressbar

查看:85
本文介绍了Firefox 6在地址栏中的JavaScript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无论我在firefox 6的地址中输入javascript:,firebug都会显示未捕获的异常:ReferenceError:document is not defined。如果我尝试窗口,它说:未捕获的异常:ReferenceError:窗口没有定义。

如果我在萤火虫命令行输入相同的程式码,这个行为是在Mozilla项目中提交的,并通过这个错误报告


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 command line, it works. What gives?

解决方案

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

这篇关于Firefox 6在地址栏中的JavaScript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆