Then I tried to add a simple javascript that prints consecutive numbers whenever someone clicks on the button; to which the website said that certain HTML tags (the <script> tag) aren't allowed, but I continued messing with the code, changing script to noscript, just to see what happens.
And guess what? First, take a look at what I posted:
Code: Select all
<button id="btn1" onclick="add()">Click me!</button>
<p id="op"></p>
<*html script tag*>
var i=0;
function add() {
document.getElementById("op").innerHTML= i + 1;
}
<*html script tag ends* >
Code: Select all
<button id="btn1" onclick="add()">Click me!</button>
<p id="op"></p>
<noscript>
var i=0;
function add() {
do*****ent.getElementById("op").innerHTML= i + 1;
}
</noscript>