javascript - Stopping the use of a URL to get to the site -


so have website redirects part of site ie, when pressing button on "www.test.com" reditects "www.test.com/anotherpage". problem want users able access second page when using button , not typing in "www.test.com/anotherpage" search bar.

so, there way setup page such cannot accessed url redirected part of website?

document.referrer

the value empty string if user navigated page directly (not through link, but, example, via bookmark). since property returns string, not give dom access referring page.


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -