I want to make the URL from a next page non-editable when I open a link like this:
<a href="javascript:window.location=''">Enter Lobby</a>
Is it possible to make the window.location
parameter non-editable through Javascript or PHP?
I want to make the URL from a next page non-editable when I open a link like this:
<a href="javascript:window.location='http://google.co.in?test=raj'">Enter Lobby</a>
Is it possible to make the window.location
parameter non-editable through Javascript or PHP?
- 1 Do you mean: prevent the user to edit the URL in the browser? – Patrick Hofman Commented Jan 28, 2014 at 10:04
1 Answer
Reset to default 7See this w3schools article on window.open
:
window.open("http://yoururl/", "title", "location=no");
The third argument are the specs
. Pass location=no
there.
If you want to disable URL change on the current page, sorry, that is not possible.