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.
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
Змінено
Обране рішення
I don't know if Firefox allows to set a value to cssText
- https://developer.mozilla.org/en/DOM/cssRule/cssText
- https://developer.mozilla.org/en/DOM/CSSStyleSheet
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.
Усі відповіді (2)
Вибране рішення
I don't know if Firefox allows to set a value to cssText
- https://developer.mozilla.org/en/DOM/cssRule/cssText
- https://developer.mozilla.org/en/DOM/CSSStyleSheet
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.
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