org.anadix.html
Class BaseTag
java.lang.Object
org.anadix.html.HtmlElement
org.anadix.html.BaseTag
- All Implemented Interfaces:
- Comparable<HtmlElement>, Element
public class BaseTag
- extends HtmlElement
Defines a default address or a default target for all links on a page. See w3schools.
- Version:
- $Id: $
- Author:
- tomason
|
Method Summary |
String |
getHref()
Specifies a base URL for all relative URLs on a page. |
String |
getTarget()
Specifies where to open all the links on a page |
| Methods inherited from class org.anadix.html.HtmlElement |
compareTo, equals, getAttribute, getAttributes, getId, getName, getParent, getPosition, getSource, getTextContent, hashCode, setPosition, setSource, setTextContent, toString |
getHref
public String getHref()
- Specifies a base URL for all relative URLs on a page.
Note: The base URL must be an absolute URL!
- Returns:
- a base URL for all relative URLs on a page.
getTarget
public String getTarget()
- Specifies where to open all the links on a page
- Returns:
- where to open all the links on a page
Copyright © 2011. All Rights Reserved.