How to call parent windows functions in Java Scripts

The following code will help you to call the parent windows javascript methods. It will work if the window is not closed.

window.opener.parent.CommonConvertPreferredCurrency()

Eg:

if(!window.opener.closed) {
if(window.opener.parent.CommonConvertPreferredCurrency) { window.opener.parent.CommonConvertPreferredCurrency(); } }

0 comments:

Post a Comment