This web page will install a web protocol handler for the fake: protocol. The code to register looks like this:
fake:
navigator.registerProtocolHandler("fake", "http://starkravingfinkle.org/projects/wph/handler.php?value=%s", "Fake Protocol");