This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

I have created .net application and it is running properly in Internet Explorer.If i am trying to run the same in mozilla, javasript popup Windows not working.

more options
this.showPage = function(url, title, width, height, topLength, leftLength) {
        try {
            if (top.window.document.getElementById('divContainer') == null) {
                var objDiv = top.window.document.createElement("<div id='divContainer' ></div>");
                objDiv.style.cssText = divStyle;
            }
            else {
                var objDiv = document.createElement("<div id='divContainer' ></div>");
                objDiv.style.cssText = divStyle;
            }
}

is working properly in IE,But not in Mozilla

<pre><nowiki>this.showPage = function(url, title, width, height, topLength, leftLength) { try { if (top.window.document.getElementById('divContainer') == null) { var objDiv = top.window.document.createElement("<div id='divContainer' ></div>"); objDiv.style.cssText = divStyle; } else { var objDiv = document.createElement("<div id='divContainer' ></div>"); objDiv.style.cssText = divStyle; } }</nowiki></pre> is working properly in IE,But not in Mozilla

Modified by cor-el

Chosen solution

I don't know if Firefox allows to set a value to cssText


A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.

The helpers at that forum are more knowledgeable about web development issues.
You need to register at the MozillaZine forum site in order to post at that forum.

Read this answer in context 👍 0

All Replies (2)

more options

Chosen Solution

I don't know if Firefox allows to set a value to cssText


A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.

The helpers at that forum are more knowledgeable about web development issues.
You need to register at the MozillaZine forum site in order to post at that forum.

more options

I got the solution for this.

Instead of

var objDiv = top.window.document.createElement("
");

I used as var objDiv = top.window.document.createElement("div"); objDiv. id="divContainer" ;

Its working fine in Mozilla