![]() |
| ||
| javacript code not working in firefox but works fine in IE var head = headElement.firstChild; var headTable = headElement.firstChild; var body = bodyElement.firstChild; var bodyTable = bodyElement.firstChild; var a = body.offsetWidth; alert(a); var scrollBarWidth = body.offsetWidth - body.clientWidth; headTable.style.width = Math.max(0, bodyTable.offsetWidth + scrollBarWidth); |
| ||
| Re: javacript code not working in firefox but works fine in IE offsetWidth is not supported in all browsers var x,y; |
| All times are GMT -4. The time now is 5:58 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC