| re: getAttribute('style') not working in IE
VK wrote:[color=blue]
> <html>
> <head>
> <title>tmp</title>
> <meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1">
> <script type="text/javascript">
> function test() {
> var s =
> document.getElementById('id_CompanyName').getAttri bute('style');
> if (typeof s == 'string') {
> alert(s);
> }
> else if (typeof s == 'object') {
> alert(s.cssText);
> }
> else {
> var mes = 'What you call \"my browser\" is not a browser.\n';
> mes+= 'Do you want a normal browser?';
> if (confirm(mes)) {
> window.location.href = 'http://www.mozilla.org';
> }
> }
> }
> </script>
> </head>
>
> <body bgcolor="#FFFFFF" onload="test()">
> <div class="dR4C2">
> <p id="id_CompanyName" style="font-size:10px;"> </p>
> </div>
> </body>
> </html>
>
> :-)
>
> Whatch the case! For further development convenience Mozilla brings
> everything to the lower case and IE to the upper case.
>[/color]
VK,
Thanks for the help... - CES |