Js

final case class Js(asString: String) extends AnyVal
Companion:
object
trait Serializable
trait Product
trait Equals
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

Create a script tag to execute this JS.

Create a script tag to execute this JS.

Example:

 <script type="text/javascript" src="data:application/javascript;base64,Y29uc29sZS5sb2coJzwvc2NyaXB0Picp"></script>

Create a script tag to execute this JS.

Create a script tag to execute this JS.

Example:

 <script type="text/javascript" src="data:application/javascript,var%20x%20=%20'%3C/script%3E';%20alert(x)"></script>
def scriptOnLoad(url: String, async: Boolean, defer: Boolean, integrity: String, crossorigin: String): Html

Create a script tag with this JS as the onload attribute.

Create a script tag with this JS as the onload attribute.

Example:

 <script type="text/javascript" src="//blah.js" onload="XX.m(&quot;hello&quot;)"></script>
@inline

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product