[jawsscripts] Matching document.location

  • From: "E.J. Zufelt" <everett@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Mon, 29 Dec 2008 06:37:24 -0400

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

Other related posts: