How to Call function from window.showModalDialog
Hii All!!
AnyPointer would be a great help
I want to call a function fun1() from the code written in test.html,which opens in modaldialog
****Index.html***********
<script>
function fun1()
{
//someCode
}
function fun2()
{
//this Open Modal Dialog window with file name say "test.html"
//window.showModalDialog('test.html', '', "dialogWidth: 600px; dialogHeight: 230px; status: no;scroll: no ");
}
</script>
<input type=button value="openDialog" onclick="fun2()">
****test.html***********
<script>
function TestFun()
{
//someCode
//Here I want to call the Index.html function named fun1()
fun1()//How to achieve it window.opener.fun1() is also not working
}
</script>
<input type=button value="callIndexFun1" onclick="TestFun()">
Cheers :)
vinod
__________________
Cheers :)
vinod
|