ابحث في الدعم

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.

  • 2 (ردّان اثنان)
  • 3 have this problem
  • 1 view
  • آخر ردّ كتبه sachusafeena

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

الحل المُختار

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

الحل المُختار

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