/** * Append the <em>oncontextmenu</em> attribute with the given String parameter as its value. * * <p>Script to be run when a context menu is triggered</p> * * <p>The value of oncontextmenu will be XML escaped. Use add("oncontextmenu",<i>value</i>,false) if the value does not have characters that need escaping.</p> * * @param oncontextmenu the String | null. * @return the receiver, this <code>HtmlAttributes</code> instance. * @since HTML5 */ public HtmlAttributes onContextmenu(String oncontextmenu) { return this.addScript("oncontextmenu", oncontextmenu, ESCAPE_CHARS); } /**
/** * Append the <em>onformchange</em> attribute with the given String parameter as its value. * * <p>Script to be run when a form changes</p> * * <p>The value of onformchange will be XML escaped. Use add("onformchange",<i>value</i>,false) if the value does not have characters that need escaping.</p> * * @param onformchange the String | null. * @return the receiver, this <code>HtmlAttributes</code> instance. * @since HTML5 */ public HtmlAttributes onFormchange(String onformchange) { return this.addScript("onformchange", onformchange, ESCAPE_CHARS); } /**
/** * Append the <em>onended</em> attribute with the given String parameter as its value. * * <p>Script to be run when media has reach the end</p> * * <p>The value of onended will be XML escaped. Use add("onended",<i>value</i>,false) if the value does not have characters that need escaping.</p> * * @param onended the String | null. * @return the receiver, this <code>HtmlAttributes</code> instance. * @since HTML5 */ public HtmlAttributes onEnded(String onended) { return this.addScript("onended", onended, ESCAPE_CHARS); } /**
/** * Append the <em>onpause</em> attribute with the given String parameter as its value. * * <p>Script to be run when media data is paused</p> * * <p>The value of onpause will be XML escaped. Use add("onpause",<i>value</i>,false) if the value does not have characters that need escaping.</p> * * @param onpause the String | null. * @return the receiver, this <code>HtmlAttributes</code> instance. * @since HTML5 */ public HtmlAttributes onPause(String onpause) { return this.addScript("onpause", onpause, ESCAPE_CHARS); } /**
/** * Append the <em>ondragleave</em> attribute with the given String parameter as its value. * * <p>Script to be run when an element leaves a valid drop target</p> * * <p>The value of ondragleave will be XML escaped. Use add("ondragleave",<i>value</i>,false) if the value does not have characters that need escaping.</p> * * @param ondragleave the String | null. * @return the receiver, this <code>HtmlAttributes</code> instance. * @since HTML5 */ public HtmlAttributes onDragleave(String ondragleave) { return this.addScript("ondragleave", ondragleave, ESCAPE_CHARS); } /**
/** * Append the <em>onscroll</em> attribute with the given String parameter as its value. * * <p>Script to be run when an element's scrollbar is being scrolled</p> * * <p>The value of onscroll will be XML escaped. Use add("onscroll",<i>value</i>,false) if the value does not have characters that need escaping.</p> * * @param onscroll the String | null. * @return the receiver, this <code>HtmlAttributes</code> instance. * @since HTML5 */ public HtmlAttributes onScroll(String onscroll) { return this.addScript("onscroll", onscroll, ESCAPE_CHARS); } /**
/** * Append the <em>onhaschange</em> attribute with the given String parameter as its value. * * <p>Script to be run when the document has change</p> * * <p>The value of onhaschange will be XML escaped. Use add("onhaschange",<i>value</i>,false) if the value does not have characters that need escaping.</p> * * @param onhaschange the String | null. * @return the receiver, this <code>HtmlAttributes</code> instance. * @since HTML5 */ public HtmlAttributes onHaschange(String onhaschange) { return this.addScript("onhaschange", onhaschange, ESCAPE_CHARS); } /**
/** * Append the <em>onpageshow</em> attribute with the given String parameter as its value. * * <p>Script to be run when the window becomes visible </p> * * <p>The value of onpageshow will be XML escaped. Use add("onpageshow",<i>value</i>,false) if the value does not have characters that need escaping.</p> * * @param onpageshow the String | null. * @return the receiver, this <code>HtmlAttributes</code> instance. * @since HTML5 */ public HtmlAttributes onPageshow(String onpageshow) { return this.addScript("onpageshow", onpageshow, ESCAPE_CHARS); } /**
/** * Append the <em>onpopstate</em> attribute with the given String parameter as its value. * * <p>Script to be run when the window's history changes</p> * * <p>The value of onpopstate will be XML escaped. Use add("onpopstate",<i>value</i>,false) if the value does not have characters that need escaping.</p> * * @param onpopstate the String | null. * @return the receiver, this <code>HtmlAttributes</code> instance. * @since HTML5 */ public HtmlAttributes onPopstate(String onpopstate) { return this.addScript("onpopstate", onpopstate, ESCAPE_CHARS); } /**
/** * Append the <em>onredo</em> attribute with the given String parameter as its value. * * <p>Script to be run when the document performs a redo</p> * * <p>The value of onredo will be XML escaped. Use add("onredo",<i>value</i>,false) if the value does not have characters that need escaping.</p> * * @param onredo the String | null. * @return the receiver, this <code>HtmlAttributes</code> instance. * @since HTML5 */ public HtmlAttributes onRedo(String onredo) { return this.addScript("onredo", onredo, ESCAPE_CHARS); } /**
/** * Append the <em>onunload</em> attribute with the given String parameter as its value. * * <p>the document has been removed</p> * * <p>The value of onunload will be XML escaped. Use add("onunload",<i>value</i>,false) if the value does not have characters that need escaping.</p> * * @param onunload the String | null. * @return the receiver, this <code>HtmlAttributes</code> instance. * @since HTML4.01 */ public HtmlAttributes onUnload(String onunload) { return this.addScript("onunload", onunload, ESCAPE_CHARS); } /**
/** * Append the <em>onkeydown</em> attribute with the given String parameter as its value. * * <p>a key was pressed down</p> * * <p>The value of onkeydown will be XML escaped. Use add("onkeydown",<i>value</i>,false) if the value does not have characters that need escaping.</p> * * @param onkeydown the String | null. * @return the receiver, this <code>HtmlAttributes</code> instance. * @since HTML4.01 */ public HtmlAttributes onKeydown(String onkeydown) { return this.addScript("onkeydown", onkeydown, ESCAPE_CHARS); } /**
/** * Append the <em>onload</em> attribute with the given String parameter as its value. * * <p>the document has been loaded</p> * * <p>The value of onload will be XML escaped. Use add("onload",<i>value</i>,false) if the value does not have characters that need escaping.</p> * * @param onload the String | null. * @return the receiver, this <code>HtmlAttributes</code> instance. * @since HTML4.01 */ public HtmlAttributes onLoad(String onload) { return this.addScript("onload", onload, ESCAPE_CHARS); } /**
/** * Append the <em>onloadstart</em> attribute with the given String parameter as its value. * * <p>Script to be run when the browser starts to load the media data</p> * * <p>The value of onloadstart will be XML escaped. Use add("onloadstart",<i>value</i>,false) if the value does not have characters that need escaping.</p> * * @param onloadstart the String | null. * @return the receiver, this <code>HtmlAttributes</code> instance. * @since HTML5 */ public HtmlAttributes onLoadstart(String onloadstart) { return this.addScript("onloadstart", onloadstart, ESCAPE_CHARS); } /**
/** * Append the <em>ontimeupdate</em> attribute with the given String parameter as its value. * * <p>Script to be run when media changes its playing position</p> * * <p>The value of ontimeupdate will be XML escaped. Use add("ontimeupdate",<i>value</i>,false) if the value does not have characters that need escaping.</p> * * @param ontimeupdate the String | null. * @return the receiver, this <code>HtmlAttributes</code> instance. * @since HTML5 */ public HtmlAttributes onTimeupdate(String ontimeupdate) { return this.addScript("ontimeupdate", ontimeupdate, ESCAPE_CHARS); } /**
/** * Append the <em>onbeforeonload</em> attribute with the given String parameter as its value. * * <p>Script to be run before the document loads</p> * * <p>The value of onbeforeonload will be XML escaped. Use add("onbeforeonload",<i>value</i>,false) if the value does not have characters that need escaping.</p> * * @param onbeforeonload the String | null. * @return the receiver, this <code>HtmlAttributes</code> instance. * @since HTML5 */ public HtmlAttributes onBeforeonload(String onbeforeonload) { return this.addScript("onbeforeonload", onbeforeonload, ESCAPE_CHARS); } /**
/** * Append the <em>onerror</em> attribute with the given String parameter as its value. * * <p>Script to be run when an error occur</p> * * <p>The value of onerror will be XML escaped. Use add("onerror",<i>value</i>,false) if the value does not have characters that need escaping.</p> * * @param onerror the String | null. * @return the receiver, this <code>HtmlAttributes</code> instance. * @since HTML5 */ public HtmlAttributes onError(String onerror) { return this.addScript("onerror", onerror, ESCAPE_CHARS); } /**
/** * Append the <em>ononline</em> attribute with the given String parameter as its value. * * <p>Script to be run when the document comes online</p> * * <p>The value of ononline will be XML escaped. Use add("ononline",<i>value</i>,false) if the value does not have characters that need escaping.</p> * * @param ononline the String | null. * @return the receiver, this <code>HtmlAttributes</code> instance. * @since HTML5 */ public HtmlAttributes onOnline(String ononline) { return this.addScript("ononline", ononline, ESCAPE_CHARS); } /**
/** * Append the <em>onkeyup</em> attribute with the given String parameter as its value. * * <p>a key was released</p> * * <p>The value of onkeyup will be XML escaped. Use add("onkeyup",<i>value</i>,false) if the value does not have characters that need escaping.</p> * * @param onkeyup the String | null. * @return the receiver, this <code>HtmlAttributes</code> instance. * @since HTML4.01 */ public HtmlAttributes onKeyup(String onkeyup) { return this.addScript("onkeyup", onkeyup, ESCAPE_CHARS); } /**
/** * Append the <em>onchange</em> attribute with the given String parameter as its value. * * <p>the element value was changed</p> * * <p>The value of onchange will be XML escaped. Use add("onchange",<i>value</i>,false) if the value does not have characters that need escaping.</p> * * @param onchange the String | null. * @return the receiver, this <code>HtmlAttributes</code> instance. * @since HTML4.01 */ public HtmlAttributes onChange(String onchange) { return this.addScript("onchange", onchange, ESCAPE_CHARS); } /**