[Project_owners] Question

Neil neil at parkwaycc.co.uk
Tue Nov 14 01:52:19 PST 2006


Amin wrote:

> type this in your addressbar !!!!
>
> javascript:alert('hi');
> you will see alert box that contain "hi"
>
> but !!
>
> type this one
>
> javascript:alert(gURLBAr.value);
>
> do you see a alert box that contain "javascript:alert( gURLBAr.value)" ?
> i dont see any thing

You're not allowed to do that from a web application for security 
reasons. alert(gURLBar.value) will however work from within an 
extension's overlay.


More information about the Project_owners mailing list