/    Sign up×
Community /Pin to ProfileBookmark

Chrome window.returnValue

Hi Experts

In my project i used one javascript function to return value form popup window ,

window.returnValue = str;
window.close();

its working fine in IE & Firefox but not in chorme getting undefined,

when i put window.returnValue in the alert of popup window i’m getting value in alert box

i’m calling the page like var opPage = window.showModalDialog(URL, ”);

in the parent window when put opPage in alert getting undefined.

this working well in both IE & Firefox but not in Chrome

guidance needed,

thanks in advance

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @windows_mss spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.14,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,
)...