Søg i 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.

Læs mere

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

Ændret af cor-el den

Valgt løsning

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.

Læs dette svar i sammenhæng 👍 0

Alle svar (2)

more options

Valgt løsning

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