how do i automatically highlight text in a scrollbox?

Discussion in 'Software' started by whitelines, Jun 12, 2006.

  1. whitelines

    whitelines Private E-2

    Sorry if that sounds confusing, but what I mean is how do I have it to where text in a scollbox automatically highlights when people click the inside of it. That way they don't have to highlight it themsevles when they go to copy & paste it... Is there a code for it? I know I've seen other sites do it...
     
  2. Raits

    Raits Private E-2

    Hey, this should work:
    Code:
    <textarea cols="40" rows="10" onClick="javascript:this.select();">
    Just some test text here
    and there
    </textarea>
    
     
  3. whitelines

    whitelines Private E-2

    ok yea it worked. thank you so much!
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds