Basically I am creating a landing page for customer wifi, we already have a way of the page being the first to load, now I want to go one further. I want the customers to agree to our usage policy before they can continue, so basic stuff, create a page, add T&C’s and a check box and an accept button, check to box click accept and you are on your way to internet awesomeness!
Except users could bypass this by changing the address in the address bar.
What I want to do is disable any address changes, thus disabling the address bar
Is it possible to do this using a simple javascript? Is there an easier way of solving this issue?
This works for me:
This opens a new window on main.jsp with reduced abilities and closes the launched window (which comes from index.jsp).
And – contrary to popular belief – the new window does not have an address bar. In fact it also doesn’t have a close box either but you can change that.
P.S. – This might only work for IE.