A Hello World! example of a bookmarklet supporting running a remote script.

Save this link as a bookmark, go to another website somewhere, then click the bookmark!

Remote Script Bookmarklet "Hello World!"

It should add "Hello World!" to the top of the page, and turn the background orange

The Details

Bookmark Code (href link):

javascript:(function(){s=document.createElement('script');s.src='http://mookstar.co.uk/bookmarklets/helloworld.js';document.body.appendChild(s);})()

helloworld.js Code:

document.body.innerHTML = "<h1 style='font-size: 100pt'>Hello World!<h1>" + document.body.innerHTML;
document.body.style.backgroundColor = "#FF9900";