Okay I tried that, but the only problem is that I can't click or
select anything in the myModal.htm. It seems that it keeps giving the focus to the <BODY> and anytime I click some element with in the <BODY> it causes the <BODY> to lose focus, so it resets the focus, etc. I'm testing this in IE4, so I don't know if this is suppose to work in Netscape.
Main Topics
Browse All Topics





by: mplungjanPosted on 1998-10-14 at 02:28:19ID: 1855667
try JavaScript: 'newwin',' width=300, height=100 ');
ok';self.c lose()"> cancel';se lf.close() ">
<SCRIPT LANGUAGE="JavaScript">
modalres = '';
WinId = window.open('mymodal.htm',
if (!WinId.opener) WinId.opener = self;
</SCRIPT>
and in the mymodal.htm have
<BODY onBlur="if (window.focus) self.focus()">
<H3>Click one</H3>
<FORM>
<INPUT TYPE="BUTTON" VALUE="OK" onClick="opener.modalres='
<INPUT TYPE="BUTTON" VALUE="CANCEL" onClick="opener.modalres='
</FORM>