View Full Version : Adress bar manipualtion

04-26-2004, 09:42 PM
Hi guys, i was doing a website and i wanted to add a nice feature to it. When a peron want to logout from my website he can type "logoff" in my address bar and the window closes here is my code

<script language="javascript">
var l = window.location.href;
var s = window.location.search;
function checkbar()
if((s == "logoff") && (l == "logoff"))


<body onload="checkbar();">


It appears that if i type in "logoff" it goes to the MSN.com search page woth the loggoff search results. It seems that it always gets the current location. Is there a way to take the next location that the user will use, is ther a method for that?
Please help, thank you

Roy Sinclair
04-26-2004, 11:14 PM
No way around that, the address bar is completely inaccessible from javascript. If you could "take over" the address bar then it would also be possible for a hostile web site to do likewise and then monitor your web surfing.

04-27-2004, 12:37 AM
Or disguise it's real location.