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 client-side script

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

Specifies the character encoding used in an external script file

Returns:
charset of script
	public String getCharset() {
		return getAttribute("charset");
	}

Specifies the MIME type of the script

Returns:
MIME type of the script
	public String getType() {
		return getAttribute("type");
	}

getLanguage.

Returns:
a java.lang.String object.
	public String getLanguage() {
		return getAttribute("language");
	}

Specifies the URL of an external script file

Returns:
URL of external script
	public String getSrc() {
		return getAttribute("src");
	}

Specifies that the script is executed when the page has finished parsing (only for external scripts)

Returns:
whether to run script after page parsing
	public String getDefer() {
		return getAttribute("defer");
	}

getEvent.

Returns:
a java.lang.String object.
	public String getEvent() {
		return getAttribute("event");
	}

getFor.

Returns:
a java.lang.String object.
	public String getFor() {
		return getAttribute("for");
	}
New to GrepCode? Check out our FAQ X