OK OK OK!!! I DID IT. I think I finally actually did what you wanted…
First, create the page that will contain your logo image.
Between your head tag add this code…
<SCRIPT LANGUAGE="JavaScript">
<!--
function openWin(page,winName,w,h,scrollb,resize) {
var win=null;
centerWidth = (screen.width) ? (screen.width-w)/2 : 0;
centerHeight = (screen.height) ? (screen.height-h)/2 : 0;
config ='height='+h+',width='+w+',top='+centerHeight+',left='+centerWidth+',scrollbars='+scrollb+',resizable='+resize+''
win = window.open(page,winName,config);
win.creator=self
}
-->
</SCRIPT>
Now on your logo image add these actions (ok, I am using a button for easy, you should know where to put the code on the image though). I explained how this works in a previous post.
<input type="button" value="Open Window" onClick="openWin('content.html', 'exitThanks', '300', '300', '1', '0')">
Alright so we got all the functions done on that page. Now create a page called “content.html”. Between the head tags add this code…
<SCRIPT LANGUAGE="JavaScript">
<!--
function exitThanks(url){
window.opener.location=url
}
//-->
</SCRIPT>
Now change the body tag by adding stuff. Like this…
<BODY onBeforeUnload="exitThanks('http://www.lostinbeta.com')">
There, now when you close the window, it will load my site in your main window:) And now you have 3 different ways of doing the same thing. Sheesh, I hope at least one of these is what you wanted!!!
Sorry for messing up so much. I paid with it in trying to figure out this last method, sheesh, took me quite a while and it was just simple coding.
Good Luck and I hope it helps. I attached a .zip file with 2 .html files in it that show you my example of it that works. So if for any reason it doesn’t work for you, you can compare it.