Im trying to create a domain bookmarklet for Netscape/Mozilla users to be able to drag and drop a shortcut to do Whois lookups. So that when they click on the whois shortcut in their browser it goes to a special URL that includes the current domain they are viewing. EXAMPLE: http://whois-it.com/the-domain-i-see.com Im using javascript:location.href but that doesnt seem to work. Any suggestions?
<a href="javascript:location.href='http://whois-it.com/' + location.hostname">link</a> Code (markup): If I understand what you're asking. Drag that link to the Mozilla/Firefox bookmark toolbar, go to a page (e.g. www.google.com), click the bookmark, and it'll end up going to http://whois-it.com/www.google.com