Click to See Complete Forum and Search --> : Count word in HTML


dvtruc
09-18-2003, 01:16 AM
Dear all
I would like to count how many words that user hightlight in one HTML page.

For example, If in one HTML page have 10 FORUM words, if user highlight one word FORUM among them, how can we count how many word FORUM in this HTML pape?.

After that, If I would like to insert a hyperlink to forums.webdeveloper.com for example, how can I insert the hyperlink and upload to server?

Please help me
Thanks

Khalid Ali
09-18-2003, 07:47 AM
1. yes what you would do is create a selection of the selected words(search the forum this has been answered several times)

and then split the search using JS split function it will create an array
string.split(" ")//return an array of words

2. for question 2 read this F.A.Q's page
http://forums.webdeveloper.com/misc.php?s=&action=bbcode