Javascript browser dictionary script

Create a new bookmark on your bookmark bar enter the following code into the URL field:

javascript: var word = prompt('What is the magic word?'); if(word){ window.open('http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=define%3A+'+word,'','scrollbars=no,menubar=no,height=600,width=800,resizable=yes,toolbar=no,location=no,status=no');}

Now when you will click the button, you will be asked “What is word you want to define?”. Simply type the word you want to define. You can change the Google search url to any url [like dictionary.com]

[pointless tags]
Javascript tricks, javascript, javascript URL code tricks, javascript rocks, javascript API, javascript hack

Advertisement

About Eating Sharks
Born, etc. twitter.com/_shahz

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.