CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Using DIV tag in DHTML

    Can i change the text inside the DIV tag on the fly?
    Suppose if i click a button the content inside the DIV tag should change.
    How can u do this . It should work both with IE and Netscape.

    Please let me know it is very urgent.



  2. #2
    Join Date
    Jul 1999
    Location
    Dayton, OH
    Posts
    55

    Re: Using DIV tag in DHTML

    Only do-able in IE (I believe)

    <DIV id="myDiv">some text.</div>

    and the script:

    document.myDiv.innerText = "new text."

    NeoWorx Inc.
    Makers of NeoTrace, NeoLite, and other upcoming products
    http://www.neoworx.com/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured