Link to home
Create AccountLog in
JavaScript

JavaScript

--

Questions

--

Followers

Top Experts

Avatar of huji
huji🇺🇸

offsetWidth
Simply:
Which browsers support offsetWidth and offsetTop? What is the best alternate to get the width/height/top/left of an object in older versions of browsers?
Thank you
Huji
PS: Somewhere else I was told that all browsers that accept getElementById accept these offset... things as well (IE 5.0+ and NS 6.0+). Even if this is correct, it doesn't give me any idea about Konquerer, Opera, and others. SO: If you send me a link to a web page, the shows all browser compatibility issues in a list, I would be SOOOOOOOOOOOOOOOO thankful!

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


ASKER CERTIFIED SOLUTION
Avatar of COBOLdinosaurCOBOLdinosaur🇨🇦

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of devicdevic🇩🇪

if a "browser" does not support offsetWidth, then this is not browser...
==================================
<table cellspacing=0 cellpadding=0 border=1>
<td div onclick=alert(this.offsetWidth)>
tested on:
IE 6.0
mozilla 1.7.2
firefox 1.0
netscape 7.1
opera 7.54
</td>
</table>

Avatar of COBOLdinosaurCOBOLdinosaur🇨🇦

Opera is Mozilla based... but I'm not sure what Konquerer uses for its DOM... I've never used it or had anyone want me to support it.

Cd&

Avatar of devicdevic🇩🇪

i think Opera is  Opera based ;)

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of COBOLdinosaurCOBOLdinosaur🇨🇦

It sort of uses the same DOM, but then sticks in a few quirks of its own and then tries to pretend it is IE... but it more compatible with standards than IE, but not as close as Firefox.

Cd&

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of hujihuji🇺🇸

ASKER

@Cd&: Your first comment has nearly solved my problem. But I have to related questions:
>...is Mozilla based...
1) What is Mozilla? Isn't it a name of a browser? I know IE is mozilla based, but, what shoudl this mean to me, to know it is mozilla based? (Excuse me for asking a question in such a dummy's way!)
2) What do Quriks Mode and Strict Mode exactly mean?
Thanks a lot
Huji

Avatar of hujihuji🇺🇸

ASKER

I am closing this question here, and asking my new question in a new thread.
Follow me here:
https://www.experts-exchange.com/questions/21222290/Terminology-question-Mozilla-based.html
Thanks
Huji

Avatar of COBOLdinosaurCOBOLdinosaur🇨🇦

Sorry for the delay, we must be on different parts of the planet.

For part 1) I posted in the other question.

For part 2):

Quirks mode, is the default mode that the browsers run in when they do not have a full Doctype entry.  It allows the browser to render non-standard implementations for backward compatibility with buggie earlier versions; continue to support hacks in earlier versions, and allow trash laden pages generated by Office and Frontpage to render as if they actually contained valid code.

When a doctype is add it brings the browser into compliance mode.  For most browsers that means they are about 95% to the w3c specs.  For IE it gets them up to about 80% compliance, but the differences between IE and the rest of the universe is much smaller in compliant mode.

Cd&

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of hujihuji🇺🇸

ASKER

Thanks a lot for your both answers man! You're a nice guy.

Avatar of COBOLdinosaurCOBOLdinosaur🇨🇦

Always glad when I can help a little.  Thanks for the A. :^)


Cd&
JavaScript

JavaScript

--

Questions

--

Followers

Top Experts

JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.