JavaScript: Bookmarklet is a tiny program?
If you know word "Bookmarklet" this info can be useful.
Wikipedia say that Bookmarklet is a small computer application, stored as the URL of a bookmark. "Hello world" program can looks like
javascript:alert('Hello world')
Program has to have only one line of code. It can be reason of using such words as "small" or "tiny". However it's not the reason. Bookmarklet can be huge. All you need is ability for running any js-file with one line of code. All modern browsers have this functionality.
As you see, we just add SCRIPT element with appropriated SRC attribute. After running of this bookmarklet http://server/script.js will be run. "script.js" can be as huge as you want.
Wikipedia say that Bookmarklet is a small computer application, stored as the URL of a bookmark. "Hello world" program can looks like
javascript:alert('Hello world')
Program has to have only one line of code. It can be reason of using such words as "small" or "tiny". However it's not the reason. Bookmarklet can be huge. All you need is ability for running any js-file with one line of code. All modern browsers have this functionality.
javascript:document.body.appendChild(document.createElement('script')).src='http://server/script.js';void(1);
As you see, we just add SCRIPT element with appropriated SRC attribute. After running of this bookmarklet http://server/script.js will be run. "script.js" can be as huge as you want.
