public class JavaScriptInjector extends AbstractInjector
| Constructor and Description |
|---|
JavaScriptInjector() |
| Modifier and Type | Method and Description |
|---|---|
static void |
inject(String javascript)
Injects the JavaScript code into a
<script type="text/javascript">...</script> element in the
document header. |
getHeadpublic static void inject(String javascript)
<script type="text/javascript">...</script> element in the
document header.javascript - the JavaScript codeCopyright © 2016. All rights reserved.