Javascript Question!!!

This is a discussion on Javascript Question!!! within the A Brief History of Cprogramming.com forums, part of the Community Boards category; How do you insert text into a layer tag, I know you can use the innerHTML with the DIV tag ...

  1. #1
    Registered User compjinx's Avatar
    Join Date
    Aug 2001
    Posts
    214

    Javascript Question!!!

    How do you insert text into a layer tag, I know you can use the innerHTML with the DIV tag by doing this:
    document.getElementById("Example").innerHTML="lala land"
    or:
    document.all.Example.innerHTML="lala land"
    but I need my script to work with NS4 but I also need to insert text into a layer tag.
    How do I do this?????
    I need halp!!!
    do I need help????
    HELP!!!!!
    "The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."
    Eric Porterfield.

  2. #2
    Registered User compjinx's Avatar
    Join Date
    Aug 2001
    Posts
    214
    I guess I should ask:
    can it be done?
    and:
    does anyone here know javascript?
    "The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."
    Eric Porterfield.

  3. #3
    Registered User compjinx's Avatar
    Join Date
    Aug 2001
    Posts
    214
    Does anyone know of a good javascript message board?
    "The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."
    Eric Porterfield.

  4. #4
    Seņor Member
    Join Date
    Jan 2002
    Posts
    561
    You might wanna try the C# board, those guys sohld know Java/Javascript.

  5. #5
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429

  6. #6
    Hamster without a wheel iain's Avatar
    Join Date
    Aug 2001
    Posts
    1,385
    QUOTE:: You might wanna try the C# board, those guys sohld know Java/Javascript. //QUOTE

    hehe the only thing is....he did.
    Monday - what a way to spend a seventh of your life

  7. #7
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    ok... i just wanted to note that iain's title truly scares me

  8. #8
    Registered User compjinx's Avatar
    Join Date
    Aug 2001
    Posts
    214
    would this work:
    document.layers['TestLayer'].document.writeln("HTML Code")
    well?
    will it work?
    "The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."
    Eric Porterfield.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. JavaScript book recommendations
    By neandrake in forum Tech Board
    Replies: 2
    Last Post: 04-05-2009, 01:27 PM
  2. another do while question
    By kbpsu in forum C++ Programming
    Replies: 3
    Last Post: 03-23-2009, 01:14 PM
  3. Replies: 2
    Last Post: 03-10-2009, 09:36 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 10:47 PM
  5. opengl DC question
    By SAMSAM in forum Game Programming
    Replies: 6
    Last Post: 02-26-2003, 09:22 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21