This class represents a link in an HTML page. Users of this class may examine the
structure of the link (as a DOM), or create a
WebRequest to simulate clicking
on the link.
author: Russell Gold author: HTMLElementScriptable implements NamedDelegate
MATCH_URL_STRING Predicate to match part or all of a link's URL string.
Constructor Summary
WebLink(WebResponse response, URL baseURL, Node node, FrameSelector sourceFrame, String defaultTarget, String characterSet) Contructs a web link given the URL of its source page and the DOM extracted
from that page.
Submits a request as though the user had clicked on this link. Will also fire the 'onClick' event if defined.
If clicking results in submitting a request (that is, there is no 'onClick' event or it returns true,
this method will return the result of that submission; otherwise, it will
return the updated contents of the frame containing this link. Note that if an event updates a different frame
that frame will not be returned by this method.