Re: How to highlight some text in an iframe by script?

From: Eliyahu Goldin (removemeegoldin_at_monarchmed.com)
Date: 11/23/04


Date: Tue, 23 Nov 2004 10:39:03 +0200

If you look at the HTML source of a google search page with highlighting,
you will find that the highlighted words are enclosed by <b> tags. I assume
they loop through all elements on the page to find the words to highlight,
i.e. to enclose with <b>, in the element's innerText property.

Eliyahu

"Nicky" <Nicky@discussions.microsoft.com> wrote in message
news:65A544E2-FB87-4921-AA31-6D76B3698B37@microsoft.com...
> hi, all
> I have an iframe in my page. Actually what I want is just like the google
> search.
> When user clicks search, I will load the a page from another URL into
iframe
> and then highlight the key words in the iframe.
> Does anyone know how to do this? By JS or VBScript?
>
> Thanks



Relevant Pages

  • Re: Search Tool for FP Website
    ... Contact Google for support on Google Search ... | http://www.floydautomatic.co.uk is where the problem lies. ... The coding is as ... and highlight the ...
    (microsoft.public.frontpage.programming)
  • Re: Search Tool for FP Website
    ... select we get the same result, a google search page is opened and we have to ... highlight. ... FrontPage Support: http://www.frontpagemvps.com/ ... The webpage is basically one huge table and the code is going within one ...
    (microsoft.public.frontpage.programming)
  • Web Links Dont Indicate If Ive Been There
    ... When I am looking at the results of a Google search, ... highlight the link from which I had just returned. ... Is there a setting in WIN XP or Explorer that does this? ... Lloyd ...
    (microsoft.public.windowsxp.customize)
  • iFrame and Javascript actions
    ... iFrame from javascript. ... When I highlight ... var str = iframe.document.getSelection; ...
    (comp.lang.javascript)