I wrote some pages in asp for a client. Their partner is going to link to a page on this site (that also links to one other page). We need to hide the URL so it is not apparent to a web user that the url has changed. I don't think it matters if the user wants to poke around and actually sees the URL but we don't want to make it obvious.
I've reviewed many posts on EE and found some great solutions but none of them are actually hiding the the title bar. Here's the solution I liked the best and tried to implement.
<script language="JavaScript">
<!--
function openWindowNew( windowURL, windowName) { windowFeatures='width=518,
height=500
,toolbar=0
,location=
0,screenx=
0,screeny=
0,director
ies=0,stat
us=0,menuB
ar=0,scrol
lBars=yes,
left=0,top
=0,resizab
le=0'
return window.open( windowURL, windowName, windowFeatures ) ;
}
//--->
</script>
On the partner's webpage:
<a href="JavaScript: newWindow = openWindowNew('
http://www.myclientURL.com/mypage.asp', 'Mywindowname'); newWindow.focus()">My Link Text </a>
The link works but I still see the URL of my client's site because the title bar is not hidden. For example, let's say my client's stie is
www.myclientURL.com and the page we want to bring up is mypage.asp. From the partner's site, when I put the code I described above, the page opens great but in the title bar, I see "
http://www.myclientURL.com" then what's between <title></title> on the page we're linking to. However, when I open that page directly (
http://www.myclientURL.com/mypage.asp in address bar) from IE, I only see what's between the title tags. I have tried setting fullscreen=yes and still the same result. Obviously, I've faked the URLs for this example but what I've described is exactly what's happening. I see "
http://www.myclientURL.com MY PAGE TITLE Microsoft Internet Explorer" using the Window.open but see only "MY PAGE TITLE Microsoft Internet Explorer" when I go directly to the page. Any ideas?
Thanks,
Alexis
Start Free Trial