Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opener Problem in child window

Status
Not open for further replies.

KevinCO

Programmer
Oct 2, 2001
45
US
Hi, thanks for reading my post, I appreciate it. I have a page that has a link that opens a child window, and in the child window I have a link that I want to change the parent window's form action and submit it, below is the code for the child window:
<html>
<head>
<script language=&quot;JavaScript&quot;>

function woof()
{
window.opener.document.forms[0].Action=&quot;Two.html&quot;;
window.opener.document.forms[0].Submit();
}

</script>

</head>
<body>
<a href=&quot;javascript:woof()&quot;>Click Here</a>

</body>
</html>

But this doesnt do either, Any help would be greatly appreciated. Thanks again for reading...Kevin

 
action and submit should NOT be capitalized. CaSe IS important to javascript. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Thank you Tracy! It works, I feel like a tool.
 
Don't feel bad, you're not the first to do something like that. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top