Hello.
It's possible to prevent the webbrowser from navigation
but i dont know if it's possible to prevent javascript code inside the
page to change the content of the document. example
var dv = document.createElement('div');
document.body.appendChild(dv);
to cancel navigation put cancel:=true in the onbeforenavigateevent.
it will simply cancel any navigation
--- In delphi-webbrowser@yahoogroups.com, "fedzim" <fedzim@...> wrote:
>
> Maybe this question has been asked already, but I can't find a
> solution anywhere. If someone can help I'll be very grateful.
>
> I need to make EmbeddedWB totally "passive", that means:
> 1) I load a web page into it and
> 1.1) if the user clicks a link it doesn't go nowhere
> 1.2) if there is a meta-refresh tag it ignores it
> 1.3) if a javascript changes the document.href, it is ignored
>
> I need a way to display a web page and the user must have NO active
> interaction with it, just select and copy text in it, but NO
> navigation at all.
>
> Is it possible? How do I achieve such result?
> THANKS IN ADVANCE!
>