1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    <textarea cols="40" rows="10" onClick="javascript:this.select();">
    Just some test text here
    and there
  3. whitelines

    whitelines Private E-2

    ok yea it worked. thank you so much!

Share This Page

MajorGeeks.Com Menu

MajorGeeks.Com \ 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 \ NEW! PC Games \ System Tools \ Macintosh \ Demonews.Com \ Top Downloads

MajorGeeks.Com \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

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