Javascript shortcut for Firefox bookmark bar

Discussion in 'JavaScript' started by rogan4567, Oct 27, 2009.

  1. #1
    I know very little about Javascript, but I want to create a bookmark that will allow me to query whois.domaintools.com when I select / highlight an IP address or domain name within a web page.

    I've been playing around with things for far too long with no results... any help would be appreciated. This is all I have:

    
    javascript:void(location.href='http://whois.domaintools.com/'+window.selection)
    
    Code (markup):
    I was basing things off this:

    
    javascript:void(location.href='http://www.textbox1.com/apps/awslink/awslink.rst?amazonid=MyAmazonID&url='+location.href)
    
    Code (markup):
     
    rogan4567, Oct 27, 2009 IP