Try this http://stackoverflow.com/questions/623047/how-to-detect-render-mode-of-browser-for-current-page
Jason Westbrook | T: 313-799-3770 | jwestbr...@gmail.com On Wed, Feb 6, 2013 at 7:50 AM, kstubs <kst...@gmail.com> wrote: > When I do this: > document.viewport.getDimensions() > > I get 0 for height and 0 for width if the IE browser is in Quirks mode. > This may or may not be a bug, I get that. So my question is: > > Can you determine through javascript what the browser mode is? > > If Browser Is Quirky > .. sound the alarm .. > Otherwise > .. code as usual .. > > -- > You received this message because you are subscribed to the Google Groups > "Prototype & script.aculo.us" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to prototype-scriptaculous+unsubscr...@googlegroups.com. > To post to this group, send email to > prototype-scriptaculous@googlegroups.com. > Visit this group at > http://groups.google.com/group/prototype-scriptaculous?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To unsubscribe from this group and stop receiving emails from it, send an email to prototype-scriptaculous+unsubscr...@googlegroups.com. To post to this group, send email to prototype-scriptaculous@googlegroups.com. Visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en. For more options, visit https://groups.google.com/groups/opt_out.