Accessing website URL and path in JAVAScript

If you want to know what the current URL user have visited in browser in your Javascript code, so you can perform some operations like we did in our another post “How to hide code / Div based on contents in URL using Javascript ?” where we tried to hide a button only on specific … Read more

How to hide code / Div based on contents in URL using Javascript ?

There are some reasons where you want certain button / image to be hidden for some section of URL’s. For example, we are showing “Publish New Ad” button on one of our website which is visible for all URL’s of a website, and same also becomes visible on “publish-new.html” html page which is opened once … Read more