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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calling javascript function from child window to parent window

Status
Not open for further replies.

richardko

Programmer
Joined
Jun 20, 2006
Messages
127
Location
US
hi another question is:
is it possible to call a javascript function in a parent window from a child window?
tks
 
Sure!

I took the title of your post and pasted it into google... and there are over 350,000 results. I glanced at the first few and they all told me. Try doing some research on your own first [smile]

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
thanks, BabyJeffy. I did not do a search right away. My fault.
i found the solution- like you said after a quick google search.

I have another question however:
The form I have looks like this:

function check22(num,chkval){
var retval=check(num);
if(chkval==0){ window.open('
}
}else if (chkval==1){
return true;
}
}

This function is called below when the form is submitted
<input type="submit" name="original" value="Send Original Items As indicated Above" onClick="return check22(2);">


I want to stop the submission of the form until the child window "reasonexchange.php" sends a response to the parent window. I tried doing executing it but the form always seems
to submit right after the child window opens.

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top