Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright 2011 Tomas Schlosser
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *     http://www.apache.org/licenses/LICENSE-2.0
  *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.anadix.html;
Defines a default address or a default target for all links on a page. See w3schools.

Author(s):
tomason
Version:
$Id: $
public class BaseTag extends HtmlElement {
	BaseTag(BigInteger idHtmlElement parentAttributes attributes) {
		super(id"base"parentattributes);
	}

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.
	public String getHref() {
		return getAttribute("href");
	}

Specifies where to open all the links on a page

Returns:
where to open all the links on a page
	public String getTarget() {
		return getAttribute("target");
	}
New to GrepCode? Check out our FAQ X