Did you know you could do this?

Did you know you can execute Javascript from the address bar in your browser?

javascript:alert("hi y'all!")

javascript-in-address-bar

Or perhaps more usefully,

javascript:alert(navigator.userAgent)

(This works in both Firefox and Internet Explorer.)

I didn’t realize that the address bar was actually a command line!

Thanks to this MSDN article for the idea!

Advertisements

,

  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s