TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Select Text After Alert Message Show In JavaScript
Delpin Susai Raj
Aug 25
2016
Code
678
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
<html>
<body>
<form> Select text: <input type=
"text"
value=
"Hello world!"
onselect=
"alert('You have selected some of the text.')"
> <br /><br /> Select text: <textarea cols=
"20"
rows=
"5"
onselect=
"alert('You have selected some of the text.')"
>
Hello worl!</textarea> </form>
</body>
</html>
Alert Message
JavaScript