Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

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 имеют эту проблему
  • 4 просмотра
  • Последний ответ от 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

Изменено 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.

Прочитайте этот ответ в контексте 👍 0

Все ответы (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