Javascript gurus,
I had found some javascript code somewhere that you put in the location URL of a Netscape Personal Toolbar Button. When you highlight an address and press the toolbar button, it pulls up a MapQuest map of that address, or if nothing is highlighted, it prompts the user for an address. It works fine in Netscape, but I want to use it in an IE Links button. When I tried pasting the code into the URL of an IE Links button and pressed the button, I get an error like: "Error: Object doesn't support this property or method."
thanks for any help!
Scott
Here's the code for the Netscape button.
********************************************
javascript:Qr=document.getSelection();if(!Qr){void(Qr=prompt('Enter address to find at MapQuest:',''))}if(Qr)location.href=' Zip=&Find+Map=Get+Map&address='+escape(Qr)+' '
********************************************
------------------
Scott Wallace
Systems Administrator
Ternion Corporation
saw@ternion.com
[sig][/sig]
I had found some javascript code somewhere that you put in the location URL of a Netscape Personal Toolbar Button. When you highlight an address and press the toolbar button, it pulls up a MapQuest map of that address, or if nothing is highlighted, it prompts the user for an address. It works fine in Netscape, but I want to use it in an IE Links button. When I tried pasting the code into the URL of an IE Links button and pressed the button, I get an error like: "Error: Object doesn't support this property or method."
thanks for any help!
Scott
Here's the code for the Netscape button.
********************************************
javascript:Qr=document.getSelection();if(!Qr){void(Qr=prompt('Enter address to find at MapQuest:',''))}if(Qr)location.href=' Zip=&Find+Map=Get+Map&address='+escape(Qr)+' '
********************************************
------------------
Scott Wallace
Systems Administrator
Ternion Corporation
saw@ternion.com
[sig][/sig]