All Downloads are FREE. Search and download functionalities are using the official Maven repository.

js.web.dom.HTMLBaseElement Maven / Gradle / Ivy

package js.web.dom;

import org.teavm.jso.JSBody;
import org.teavm.jso.JSProperty;

/**
 * Contains the base URI for a document. This object inherits all of the properties and methods as described in the HTMLElement interface.
 */
public interface HTMLBaseElement extends HTMLElement {
    @JSBody(script = "return HTMLBaseElement.prototype")
    static HTMLBaseElement prototype() {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    @JSBody(script = "return new HTMLBaseElement()")
    static HTMLBaseElement create() {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    /**
     * Gets or sets the baseline URL on which relative links are based.
     */
    @JSProperty
    String getHref();

    @JSProperty
    void setHref(String href);

    /**
     * Sets or retrieves the window or frame at which to target content.
     */
    @JSProperty
    String getTarget();

    @JSProperty
    void setTarget(String target);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy