quirk or standard mode

Discussion in 'HTML' started by David Graham, Dec 21, 2005.

  1. David Graham

    David Graham Guest

    Hi
    I used to be able to type the line below into the address bar of a browser
    (Opera but works in IE I think)
    javascript:alert(document.compactMode);
    and it would tell me if the browser was in quirks mode or standard mode.
    They all come back as Undefined at the moment.
    Anyone know why?
    thanks
    David
     
    David Graham, Dec 21, 2005
    #1
    1. Advertising

  2. David Graham <> wrote:

    > I used to be able to type the line below into the address bar of a
    > browser (Opera but works in IE I think)
    > javascript:alert(document.compactMode);

    ^
    > and it would tell me if the browser was in quirks mode or standard
    > mode. They all come back as Undefined at the moment.


    There's a typo. It's document.compatMode

    --
    David Håsäther
     
    David Håsäther, Dec 21, 2005
    #2
    1. Advertising

  3. David Graham

    David Graham Guest

    "David Håsäther" <> wrote in message
    news:Xns973397778E950davidhasather@195.67.237.53...
    > David Graham <> wrote:
    >
    > > I used to be able to type the line below into the address bar of a
    > > browser (Opera but works in IE I think)
    > > javascript:alert(document.compactMode);

    > ^
    > > and it would tell me if the browser was in quirks mode or standard
    > > mode. They all come back as Undefined at the moment.

    >
    > There's a typo. It's document.compatMode
    >
    > --
    > David Håsäther

    Thank you very much.
    David
     
    David Graham, Dec 21, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chris Morris

    Re: dtd and quirk mode

    Chris Morris, Jul 22, 2003, in forum: HTML
    Replies:
    0
    Views:
    395
    Chris Morris
    Jul 22, 2003
  2. John J Lee
    Replies:
    3
    Views:
    487
    bruno at modulix
    Dec 1, 2005
  3. Edward Loper
    Replies:
    0
    Views:
    472
    Edward Loper
    Aug 7, 2007
  4. John J Lee
    Replies:
    0
    Views:
    525
    John J Lee
    Aug 7, 2007
  5. Edward Loper

    mmm-mode, python-mode and doctest-mode?

    Edward Loper, Aug 9, 2007, in forum: Python
    Replies:
    0
    Views:
    437
    Edward Loper
    Aug 9, 2007
Loading...

Share This Page