[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Search methods added to the WebView control
[Thread Prev] | [Thread Next]
- Subject: Re: Search methods added to the WebView control
- From: Claus Dietrich <claus.dietrich@xxxxxxxxxx>
- Date: Fri, 18 Apr 2025 15:27:36 +0200
- To: Gambas MailingList <user@xxxxxxxxxxxxxxxxxxxxxx>
Am 18.04.25 um 13:48 schrieb Benoît Minisini:
By typing "unselect text in javascript" in a search engine, I get that first answer: https://stackoverflow.com/questions/6562727/is-there-a-function-to-deselect-all-text-using-javascriptRegards,
Your search query was the better one! This removes all text markings:WebViewDocView.ExecJavascript("if (window.getSelection) {window.getSelection().removeAllRanges();} else if (document.selection) {document.selection.empty();}")
The minimum version .. WebViewDocView.ExecJavascript("{window.getSelection().removeAllRanges();}") does as well for my purposes. Thanks and best regards Claus
Search methods added to the WebView control | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
Re: Search methods added to the WebView control | Claus Dietrich <claus.dietrich@xxxxxxxxxx> |
Re: Search methods added to the WebView control | Claus Dietrich <claus.dietrich@xxxxxxxxxx> |
Re: Search methods added to the WebView control | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
Re: Search methods added to the WebView control | Claus Dietrich <claus.dietrich@xxxxxxxxxx> |
Re: Search methods added to the WebView control | Claus Dietrich <claus.dietrich@xxxxxxxxxx> |
Re: Search methods added to the WebView control | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
Re: Search methods added to the WebView control | Claus Dietrich <claus.dietrich@xxxxxxxxxx> |
Re: Search methods added to the WebView control | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |