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

how to simulate javascript window.returnValue in non-IE browser like F

Status
Not open for further replies.

johnjsforum

Programmer
Jul 30, 2007
11
US
Buddies,
With IE, we can return a value from an opened child window to the parent window (opener) using the statement
return window.returnValue;

My question, how can I use the same javascript methodology in non-IE browser like FireFox? FireFox does not support window.returnValue so which is the solution in FireFox?

I do not want to use a workaround for FireFox to set the returned value like:

window.opener.document.getElementById(‘myTargetObjectInOpener’).value= document.getElementById(‘myReturnedValueInOpenedWindow’).value;

Thanks in advance.
 
You've answered your own question, and also decided to ignore your own answer.

You've already said that Firefox doesn't support what you've found to be an IE-only property, and you've said you don't want to use an alternative that works cross-browser.

So what do you expect anyone else to give you?

If I were you, I'd go with the cross-browser solution.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Dan,
Thanks for your post. I will follow the browser-cross method using DOM.
Johnaspnet
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top