How do i access the underlying DOM Document for my HTML Page of my Browser?
Created Feb 28, 2002
Davanum Srinivas
Java-to-Javascript Communication
DOMService service = null;
try
{
service = DOMService.getService(MyApplet);
String title = (String) service.invokeAndWait(new DOMAction()
{
public Object run(DOMAccessor accessor)
{
HTMLDocument doc = (HTMLDocument) accessor.getDocument();
return doc.getTitle();
}
});
}
catch (DOMUnsupportedException e1)
{
}
catch (DOMAccessException e2)
{
}
More information can be found at:Java-to-Javascript Communication