About JavaScript URLs

Some browsers will warn you when you attempt to save a JavaScript URL to your . Here is a brief explanation as to why.

A JavaScript URL is code. This code gets executed when you click its link or pick it from your . The code can be good, but it can also be harmful. Your browser tries to protect you from accidentally saving code instead of normal links.

Say you have a page open. When you pick a JavaScript URL from your , the code gets executed in the context of that web page, regardless of who created the page, who created the code, whether they are the same person or not, or whether that site wants that code to execute or not.

The code can do just about anything. It can do something helpful like create mark-ups, or do something devious like steal data on the page and send it to other websites. You should be careful about what JavaScript URLs you add to your and on which pages you execute them.

Add JavaScript URLs to your only from sites you trust. They can be helpful and enhance the sites you visit, but they can also be malicious. You will have to use your own judgement.

The term for this is 'non-persistent cross-site scripting'. It can be used for good, but also for evil. You can read more on Wikipedia or search the web to make a more informed choice.