<script language="javascript">
function fun()
{
var hh, h=null;
if (window.showModalDialog)
{
h = window.showModalDialog("hellos.html", hh);
}
else
{
h = window.open("hellos.html", hh, "left=100,top=100,width=550,height=300,dependent,modal");
window.οnfοcus=function()
{
if(h && !h.closed)
{
h.focus();
}
}
return false;
}
alert("hai");
}
fun();
</script>