Check out the GetRelevantAddressBarInfo functions used in IECustomSettings.jss. Thanks Chad On 12/29/08, E.J. Zufelt <everett@xxxxxxxxx> wrote: > Good morning, > > I am trying to customize some IE scripts for a couple of particular pages on > an Intranet site. > > At the beginning of my scripts I am trying to compare a certain URL with the > document.location. It doesn't seem to matter what I do, the comparrison > never evaluates to true. I do not have the same problem with > document.location. > > Var > Object oDoc > > Let oDoc = IEGetCurrentDocument() > > > > > > ; This never evaluates to true even if I verify the URL in the > > ; browser and by using the JAWS copy to clipboard command > > ;on oDoc.location > > if oDoc.location == "http://www.google.ca/" Then > > ;do something > > EndIf > > > > ; This will evaluate to true provided that I have given the > > ; correct domain > > > > If oDoc.domain == "www.google.ca" Then > > ;do something > > EndIf > > > > Any thoughts appreciated, > > Everett > > > > > > __________ > Visit and contribute to The JAWS Script Repository http://jawsscripts.com > > View the list's information and change your settings at > http://www.freelists.org/list/jawsscripts > > -- Chad Foster Access Technology Solutions Leveling The Playing Field Through Technology http://www.GO-ATS.net __________ Visit and contribute to The JAWS Script Repository http://jawsscripts.com View the list's information and change your settings at http://www.freelists.org/list/jawsscripts