I'm not sure what the best solution to this is, but the approach that we choose is to register a DOM event listener to intercept and stop attempts to follow a link. One advantage to this approach is that it should work on any DOM Level 2-enabled browser.

The DOM Level 2 Specification, which covers DOM events, can be found at http://www.w3.org/TR/DOM-Level-2-Events/.
One caveat: we've found that Mozilla only implements parts of the specification, so if you try something and it doesn't work, you may need to take a slightly different approach. For example, if I recall correctly, we had to register a UI event listener instead of a Mouse Listener. Searching through the DOM, Java, and embedding newsgroups may reveal some relevant postings.

I'm not familiar with the browser.goBrowsing.enabled property, but it may be a viable solution as well.

On 11/14/2002 7:44 AM, Remus Stratulat wrote:

How can I disable browsing in webclient?
I need only the reporting of a link from webclient but I need it not fo
follow that link.

I found out about browser.goBrowsing.enabled property but I don't know
if it is what I need or if i used correctly.

Thanks,
Remus Stratulat







Reply via email to