Our Craft

Making it better

Did you know you could do this?

Posted by danielmeyer on October 6, 2009

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!

About these ads

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 )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.