B
bbcrock
I want to check to see if the user uses the back button to exit our
site. I want to stop running certain functions if they leave our site
via a back button.
I am a real newbie for JS and have a limited knowledge or Regular
Expressions.
my code to check for the urls is:
var test_url=/(www.url1.com)|(www.url2.com)|(history.go)/i;
where history.go is my best assumption of code that would identify the
url the browser sees. Doesn't work though. I RTFM'd, I checked
google, I'm not getting this to work.
can anyone post a response here?
thanks!
Don
site. I want to stop running certain functions if they leave our site
via a back button.
I am a real newbie for JS and have a limited knowledge or Regular
Expressions.
my code to check for the urls is:
var test_url=/(www.url1.com)|(www.url2.com)|(history.go)/i;
where history.go is my best assumption of code that would identify the
url the browser sees. Doesn't work though. I RTFM'd, I checked
google, I'm not getting this to work.
can anyone post a response here?
thanks!
Don