Currently I’m using the following as a bookmark in Firefox 3.6.3. It redirects me to the RFC just fine, but the active tab says [object Window]. What do I need to do to get rid of that artifact?
javascript:var rfc=prompt("RFC Number");window.open("http://ietf.org/rfc/rfc" + rfc + ".txt")
You can use also an auto-invoking anonymous function:
Since it doesn’t have a return value, by default will return
undefined, preventing the navigation.It will work and your bookmarklet won’t introduce any global variables on the page.