Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

windows.opener Javascript doesn't work in Netscape ?

Posted on 2004-10-06
1
Medium Priority
?
1,006 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 1000 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

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…
#Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…

688 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