Results 1 to 2 of 2

Thread: how do i put a input textbox on my web page the user writes something and is converte

  1. #1
    Join Date
    Oct 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation how do i put a input textbox on my web page the user writes something and is converte

    how do i put a input text box on my web page. the user writes something on the textbox and what he wrote will be added automatically to another textbox that contains html code.
    so the user can copy the whole html code.
    like on my hot comments.com
    myhotcomments.com/graphics/49343
    plase help[

  2. #2
    Join Date
    Jul 2006
    Posts
    497
    Thanks
    8
    Thanked 70 Times in 70 Posts

    Default

    Code:
    inputbox.onkeyup = function(){
        outputbox.value = 'enclosing ' + this.value + ' text';
    }
    Find the boxes with document.getElementById.
    -- Chris
    informal JavaScript student of Douglas Crockford
    I like wikis - a lot.

Bookmarks

Posting Permissions

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