> Can this be done ??
Yes, this can be done
in the header of the main html document write the following code:
<SCRIPT LANGUAGE="JavaScript">
window.attachEvent('onload', function() {
window.open("your-url.html","moreinfo", "width=300,height=200");
});
</SCRIPT>
Now in the more-info popup html do the following in the header:
<SCRIPT LANGUAGE="JavaScript">
function moreInfoClicked() {
// address to load
url = 'http://yoursite.com/moreinfo.html';
// check if the opener exists and it isn't closed
if (window.opener && (!window.opener.closed)) {
// its not closed, load the URL in the window
window.opener.location.href=url;
} else {
// if it is closed, open a new window
window.open(url, "_blank", "status=1, menubar=1,"+
"scrollbars=1,resizable=1, toolbar=1,location=1");
}
// close current window
window.close();
}
</SCRIPT>
<A HREF="#" onClick="moreInfoClicked();">more info...</A>
see window.open for more info:
http://msdn.microsoft.com/workshop/a...ods/open_0.asp
Good luck,
Vincent