Identifying with "document" across tables

Discussion in 'HTML' started by Richard, Jan 13, 2004.

  1. Richard

    Richard Guest

    Purely for experimental purposes.
    I just want to know why it ain't working.

    You have a 4x4 table array.
    In table cell 1x1 you have an image, and in table cell 4x4 you have an
    image.
    Click on cell 1x1 and the image in table cell 4x4 changes to another image.
    I tried using onclick="document.imagename.src='newimage'" but I get an error
    message.
    "Object expected" or "is not an object".
    The trick works fine in divisions, but not apparently across tables.
    Is there a reasoning behind this or am I missing something here?
    Any other methods to use?
    Richard, Jan 13, 2004
    #1
    1. Advertising

  2. Richard

    Steve R. Guest

    Steve R., Jan 13, 2004
    #2
    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. Stu
    Replies:
    1
    Views:
    391
    Eliyahu Goldin
    Jun 12, 2005
  2. Peter Bassett
    Replies:
    3
    Views:
    917
    Augustus
    Aug 15, 2003
  3. Otuatail

    Tables within tables

    Otuatail, Jul 31, 2004, in forum: HTML
    Replies:
    7
    Views:
    486
  4. Chris Brat
    Replies:
    5
    Views:
    689
    =?iso-8859-1?q?Luis_M._Gonz=E1lez?=
    Aug 22, 2006
  5. David Logan

    Document Elements across Frames

    David Logan, May 30, 2004, in forum: Javascript
    Replies:
    1
    Views:
    90
    Adrienne
    May 31, 2004
Loading...

Share This Page