Re: How to highlight some text in an iframe by script?
From: Eliyahu Goldin (removemeegoldin_at_monarchmed.com)
Date: 11/23/04
- Next message: Eliyahu Goldin: "Re: wrap in a datagrid with autocolums"
- Previous message: Dorte: "Re: Response with file attached make save/open dialog appear twice"
- In reply to: Nicky: "How to highlight some text in an iframe by script?"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Eliyahu Goldin: "Re: wrap in a datagrid with autocolums"
- Previous message: Dorte: "Re: Response with file attached make save/open dialog appear twice"
- In reply to: Nicky: "How to highlight some text in an iframe by script?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|