HTML editor: Restricted elements
For security purposes, you cannot use JavaScript elements and GlobalEventHandlers in the text editor when it is in HTML mode. To add JavaScript to questions, portal content boxes, and entry quotas, use the Script Editor.
Add Javascript to | Access to the Script Editor |
---|---|
Questions | |
Portal content boxes | |
Entry quotas |
You cannot use the following JavaScript elements and GlobalEventHandlers in the HTML editor:
JavaScript | GlobalEventHandlers |
---|---|
onabort onblur onchange onclick onclose oncontextmenu ondblclick onerror onfocus oninput onkeydown onkeypress onkeyup onload onmousedown onmousemove onmouseout onmouseover onmouseup onreset onresize onscroll onselect onsubmit |
onabort onblur onerror onfocus oncancel oncanplay oncanplaythrough onchange onclick onclose oncontextmenu oncuechange ondblclick ondrag ondragend ondragenter ondragexit ondragleave ondragover ondragstart ondrop ondurationchange onemptied onended oninput oninvalid onkeydown onkeypress onkeyup onload onloadeddata onloadedmetadata onloadstart onmousedown onmouseenter onmouseleave onmousemove onmouseout onmouseover onmouseup onmousewheel onmozfullscreenchange onmozfullscreenerror onpause onplay onplaying onpointerdown onpointermove onpointerup onpointercancel onpointerover onpointerout onpointerenter onpointerleave onpointerlockchange onpointerlockerror onprogress onratechange onreset onscroll onseeked onseeking onselect onselectionchange . onshow onsort onstalled onsubmit onsuspend ontimeupdate onvolumechange ontouchcancel ontouchend ontouchmove ontouchstart onwaiting |