Simple DHTML/JavaScript Question

Discussion in 'Archived Threads 2001-2004' started by TheoGB, Jun 16, 2002.

  1. TheoGB

    TheoGB Screenwriter

    Joined:
    Jun 18, 2001
    Messages:
    1,744
    Likes Received:
    0
    Looking through some JavaScript recently I saw the condition:

    if (document.all) {code to move around image source, etc.}

    What does this check for? That there is a document to reference image work to at all?

    How would there not be a document if the code were running?

    Cheers
    Theo
     
  2. Srinivas Reddy

    Joined:
    Sep 28, 1999
    Messages:
    40
    Likes Received:
    0
    I think it is checking if the browser is IE4 and above or not.
    You would do a if(document.Layers) to check for netscape.
     

Share This Page