I have a .
JS file that is an arrays page for a menu system being utilized in my ASP page. The following code is one of the menus and its items:
arMenu3 = new Array(
120, //menu width
320, //left
120, //top
"#000000", //font color
"#000000", //font mouseover color
"#EEEEEE", //background color
"#CCCCCC", //background mouseover color
"#999999", //border color
"#999999", //seperator color
"Lab Test Consent Forms","http://zzzzweb018/Legal/consent.htm#5",0,
"Order Book (LAB 202)","/hmfw7/general/lab202.pdf",0,
"Point of Care Protocols","/hmfw7/poc/index.htm",0,
"Release of Body","http://zzzzweb01/hmfw8/HPolicy/602revdofbody.doc",0,
"Specimen Collection","/hmfw7/collections/index.asp",0,
"Transfusion Services","/hmfw7/bbprotocols/index.asp",0
)
I am needing to check if a user is coming from a particular website in order NOT to show two of the menu items. I tried checking using the document.referrer command however I am not doing something right. What I did is as follows:
if (document.referrer != "http://www.mywebsite.com")
"Lab Test Consent Forms","http://zzzzweb018/Legal/consent.htm#5",0,
My javascript error showed it was expecting a " ) ". Any direction or help would be appreciated. I do not know what I am doing wrong.
Thanks.