Solved

windows.opener Javascript doesn't work in Netscape ?

Posted on 2004-10-06
1
1,002 Views
Last Modified: 2013-12-16
Hi,

I've got the following script that works in IE, but doesn't work in Netscape - How can I fix it?

Thanks!



<script language="javascript">

            //Get existing html content from the opener's html textarea:

            window.html_editor.html_code.innerHTML=window.opener.<%=form_name%>.<%=textarea_name%>.innerHTML

            //Redirect to the editor page:

            window.html_editor.submit()

            </script>
0
Comment
Question by:l_agmon
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 36

Accepted Solution

by:
Zyloch earned 250 total points
ID: 12242086
Hi l_agmon,

You should try this:

if (window.opener&&!window.opener.closed) {
   document.forms['html_editor'].elements['html_code'].innerHTML=window.opener.document.forms['<%=form_name%>'].elements['<%=textarea_name%>'].innerHTML;
   document.forms['html_editor'].submit();
}


This is extremely safe code, but you can also simplify it by trying this:

document.html_editor.html_code.innerHTML=window.opener.document.<%=form_name%>.<%=textarea_name%>.innerHTML;
document.html_editor.submit();



Regards,
Zyloch
0

Featured Post

Create Professional Looking Email Signatures

Create "Professional HTML Email Signatures" with ease.
7 Day Money Back Guarantee if not 100% Satisfied.
Affordable - Try it out for 7 Days Totally Risk Free.
Installers provided for over 45 Email clients.
Both Windows & MAC Supported.
Highly Recommended!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I had to do a bit of research to find the answer to this question so I thought I'd share my results.  Due to our outdated mainframe systems, we need to downgrade IE9 to IE8 in order to stay compatible.  We also needed to downgrade Java.  In order to…
Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question