Go Back   Armenian Knowledge Base > Technical sections > Webmaster Zone > Web Development

Reply
 
Thread Tools

JavaScript: How to get selected text of desired element name?
Old 15.06.2003, 10:31   #1
Moderator
 
acid's Avatar
 
Join Date: 09 2001
Location: South Korea, Gumi
Posts: 7,699
Blog Entries: 16
Rep Power: 7
Default JavaScript: How to get selected text of desired element name?

This will represent any selected text in whole page for IE5.x.

document.selection.createRange().text

What if I want to get text only from specified "input" control for IE (NS has its own methods and I don't need that) ?

Old 15.06.2003, 20:31   #2
freelancer
 
Yerkanian's Avatar
 
Join Date: 06 2002
Location: the same place
Posts: 592
Rep Power: 0
Default

You mean from <TEXTAREA> for example?
Reply




Реклама:
реклама
Buy text link .

All times are GMT. The time now is 03:06.
Top

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.