What is a scriptlet?

In the JavaScript world Scriptlets are short pieces of code which can be executed through the browser directly. They act on the page in the same wasy as if the user had clicked a button in an application.

An example of a simple Scriptlet is javascript: alert(location.href); void(0);

The best way to add a Scriptlet varies depending on which browser you have:

For Firefox – right click in the Bookmark bar and select New Bookmark

Advertisement

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