public class Script extends Object implements Renderable
The placing of JavaScript in the above location differs in the timing of their execution. JavaScript placed in the HEAD section of HTML will be executed when called whereas, JavaScript placed in the BODY section of HTML will be executed only when the page is loaded.
| Modifier and Type | Field and Description |
|---|---|
String |
javascript |
String |
src |
String |
type |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
static Script |
external(String src) |
void |
renderOn(HtmlCanvas canvas)
Render the receiver using the HTML html.
|
static Script |
source(String source) |
String |
toString() |
public Script(String src)
public void renderOn(HtmlCanvas canvas) throws IOException
RenderablerenderOn in interface RenderableIOExceptionCopyright © 2010–2018. All rights reserved.