B
Buddha
Hello,
I posted this on two forums, without too much help .. and I am kinda
stuck in this.
I need to refresh the parent page from the second child window which
is opened by the first child and the first child window closes after
opening the second child.
This is the second time I am typing the post, I lost all content
because the site complaine I was using the lesser than symbol.
Here is the code I wrote for this. the first child doesnt open the
second child in IE. however, in firefox, the first child does open the
second one but closes without even me writing code to close. Ofcourse,
it doesnt call the script on the parent page.
Parent :
--------------------------------------------------------------------------------
<a href="javascript:void(0);"NAME="My Window Name" title=" My title
here
"onKlick=window.open("child.html","Ratting","width=550,height=170,0,status=0,");>
Click here to open the child window</a>
--------------------------------------------------------------------------------
child :
--------------------------------------------------------------------------------
<script language="JavaScript">function goback()
{window.opener.location.reload("google.com");window.close();}</script>
and then called the function with a button open another window<a
href="javascript:void(0);"NAME="My Window Name1" title=" My title
here11
"onKlick=window.open("child2.html","Ratting","width=150,height=120,0,status=1");>Click
here to open the child window</a> <input type="button" value="Close
this window" Onklick="goback()">
--------------------------------------------------------------------------------
child1 (this is saved as child2.html on my system):
--------------------------------------------------------------------------------
<script language="JavaScript">function goback()
{window.opener.location.reload("google.com");window.close();}</script>
and then called the function with a button on parent <input
type="button" value="Close this window" OnKlick="goback()">
I posted this on two forums, without too much help .. and I am kinda
stuck in this.
I need to refresh the parent page from the second child window which
is opened by the first child and the first child window closes after
opening the second child.
This is the second time I am typing the post, I lost all content
because the site complaine I was using the lesser than symbol.
Here is the code I wrote for this. the first child doesnt open the
second child in IE. however, in firefox, the first child does open the
second one but closes without even me writing code to close. Ofcourse,
it doesnt call the script on the parent page.
Parent :
--------------------------------------------------------------------------------
<a href="javascript:void(0);"NAME="My Window Name" title=" My title
here
"onKlick=window.open("child.html","Ratting","width=550,height=170,0,status=0,");>
Click here to open the child window</a>
--------------------------------------------------------------------------------
child :
--------------------------------------------------------------------------------
<script language="JavaScript">function goback()
{window.opener.location.reload("google.com");window.close();}</script>
and then called the function with a button open another window<a
href="javascript:void(0);"NAME="My Window Name1" title=" My title
here11
"onKlick=window.open("child2.html","Ratting","width=150,height=120,0,status=1");>Click
here to open the child window</a> <input type="button" value="Close
this window" Onklick="goback()">
--------------------------------------------------------------------------------
child1 (this is saved as child2.html on my system):
--------------------------------------------------------------------------------
<script language="JavaScript">function goback()
{window.opener.location.reload("google.com");window.close();}</script>
and then called the function with a button on parent <input
type="button" value="Close this window" OnKlick="goback()">