< a href = "javascript: (function () {var d = document, s;
s = d.createElement ('script');
if (typeof s! = 'object') s = d.standardCreateElement ('script');
s.src = 'http: //example.com/js/bookmarklet.js';
s.type = 'text / javascript';
d.body.appendChild (s);}) (); " > Do it! </ a >
( function () {
var d = document , s;
s = d.createElement ( 'script' );
if ( typeof s! = 'object' ) {
s = d.standardCreateElement ( 'script' );
}
s.src = 'http://example.com/js/bookmarklet.js' ;
s.type = 'text / javascript' ;
d.body.appendChild (s);
}) ();
Source: https://habr.com/ru/post/28355/
All Articles