How do I open this word document in html?

How can I find selected word from a html document?

  • When user double clicked on any text on my webpage, A popup window shows that text (word) in big font. So, Can I determine which word is selected in a webpage? Please help me with examples/links. I like to use javascript, html, php. simple example is ok. Thanks in advance.

  • Answer:

    At any time, you can do: <script type="text/javascript"> var selText = document.getSelection().toString(); </script> selText will then contain the selection text at that time.

AdamT at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.