faqts : Computers : Programming : Languages : JavaScript : Images

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

79 of 93 people (85%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

What is "if (document.images)" good for?
Which browsers don't know the document.images array?

Mar 2nd, 2000 01:29
Martin Honnen,


NN2 and IE3 don't have the
  document.images
array in their DOM. To write image swapping code that doesn't throw 
errors with these browsers you check
  if (document.images)
before manipulating image urls in your client side JavaScript code.