Link to home
Start Free TrialLog in
Avatar of f1998341
f1998341

asked on

Hide the url

I want to open a page in a new window, but this new window should not contain the url of the page in its address bar. Is that possible?
ASKER CERTIFIED SOLUTION
Avatar of jaysolomon
jaysolomon

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of f1998341
f1998341

ASKER

Jaysolomon, but the url is visible in the title bar of the popups!!!
Its like i want to clear the address bar of the new window.even if refreshed. that's it.
there is no way to hide the url in the title bar. that is like a built in feature if you will and there is nothing we can do about it.

The only thing you can do is have a pop up like i did and not show the address bar.

jAy
<script>
 URL="http://www.yahoo.com/"
 winname="yahoo"
 options="scrollbars=no,resizable=no,menubar=no,status=no,toolbar=no,location=no,directories=no,width=400,height=400,left=50,top=50";
 var remote = window.open(URL,winname,options);
</script>


Here you can see all the options that you can turn on or off.  Hope this helps.
try this,

<html>
<head>
<title>open New Window</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
function openWin(theURL){
  var framehtml = '<html><head><title>Your Title</title></head><body topmargin="0" leftmargin="0"><iframe width="100%" height="100%" src="';
  framehtml += theURL + '"></iframe></body></html>';

  win = window.open('','mywin','width=500,height=400');
  win.document.write(framehtml);
  win.document.close();  
}
//-->
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000">
<p><a href="#" onClick="openWin('http://www.yahoo.com');return false;">Yahoo!</a></p>
<p><a href="#" onClick="openWin('http://www.cnn.com');return false;">Cnn</a></p>
<p><a href="#" onClick="openWin('http://www.microsoft.com');return false;">Microsoft</a></p>
</body>
</html>

you can specify the title you want for the new window.
it does not matter if you specify a title or not.

The fact is that while loading the page you will see the url in the title bar, but it will go away
Avatar of Michel Plungjan
f1998341,
No comment has been added lately (291 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: Award points to jaysolomon http:#8261765

Please leave any comments here within 7 days.

-- Please DO NOT accept this comment as an answer ! --

Thanks,

mplungjan
EE Cleanup Volunteer