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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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,res izable=no, menubar=no ,status=no ,toolbar=n o,location =no,direct ories=no,w idth=400,h eight=400, left=50,to p=50";
var remote = window.open(URL,winname,op tions);
</script>
Here you can see all the options that you can turn on or off. Hope this helps.
URL="http://www.yahoo.com/"
winname="yahoo"
options="scrollbars=no,res
var remote = window.open(URL,winname,op
</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','wi dth=500,he ight=400') ;
win.document.write(frameht ml);
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.
<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','wi
win.document.write(frameht
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
The fact is that while loading the page you will see the url in the title bar, but it will go away
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
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
;)
ASKER
Its like i want to clear the address bar of the new window.even if refreshed. that's it.