Jump to content

Search Javascript function "ifcurrentURLcontains("foobar\") { ...... } ?


pstein

Recommended Posts

I am searching for a JavaScript function which  let me check if the URL of the current webpage (e.g. "https:\\www.mydomain.com\foobar\blah\") contains a certain pattern (e.g. "foobar\")?

If yes, further, following commands should be executed.

Otherwise the processing should continue after If statement.

Is there such a function?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...