Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Oct 2002
    Posts
    58
    Thanks
    0
    Thanked 0 Times in 0 Posts

    highlight text on page and alert me

    hi,

    This is a strange accessibility project I'm having to look into.

    Is it possible to have a page with text, highlight any word, or 2 or 3 then have it pop up an alert window telling you what you have highlighted with teh mouse on the page?

    Thanks for any help you can on this.

    Death = $Mill

  • #2
    Regular Coder
    Join Date
    Nov 2003
    Location
    Vancouver Island Canada
    Posts
    139
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you can use the onselect handler in IE check this link
    Code:
    <input type - "text" onselect = "alert(this.value)" />
    http://msdn.microsoft.com/library/de...s/onselect.asp
    Last edited by glenmac; 08-20-2005 at 09:42 AM.


  •  

    Posting Permissions

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