hello every one i have a query thr is one web page and i am using two iframe in that like equal partision of a page and there are some contents , words , text which are same in both parts and if i am selecting any one word or sentence which are also in second part will be highlight
A:
I don't think there is a way to select web page content via JS. You might be able to do this if it were just text in a textbox or something similar.
UPDATE As is usually the case, I was proven wrong :) Check out Marcel's posted function. This function appears to select content between two object. You'll just need to do this twice (one for each frame object), rather than once using the document object
Dutchie432
2010-09-02 15:19:52
Yes, you can; e.g., see http://stackoverflow.com/questions/2950038/selecting-text-by-ignoring-inner-elements-of-div-tag-javascript/2950327#2950327
Marcel Korpel
2010-09-02 15:22:32
Well, I'll be damned.
Dutchie432
2010-09-02 15:34:51
@ Dutchie432 hi thanks that u tried to help me but sorry to say that it did not work.It is showing error page and also it is on similsr page no iframe is used in it.As in iframe content will be comming from two diffrent pages so it's not so iasy to communicate co-relate two different pages.plzzzzzzzz any one please help me.....
Aradhana Singh
2010-10-14 09:10:36