|
I have an html page with text and images. I want the following functionality.
When The user selects some portion of text with the mouse, two tags should be inserted in the html file. One tag at the beginning of the selection as <para one> and the other tag at the end of the selected text as </para one>
The user should be prompted for the tag names when he selects the text with mouse and presses a submit button.
This way each selected portion of text will have start and end tags.
I shall then parse this html file for these tag names and store the tag names in a table for future use.
Please help with suitable javascript or vbscript code.
Thanks
|
|
|
|
|
|
|
// |