New Document
/*
* This function is called on loading of the page
* The current question value is set to 1
* The default marks value is set to 0
*/
function load()
{
//.rows[2].cells[4].innerText
document.getElementById(“currentquestion”).value=1;
document.getElementById(“totalscore”).value=0;
}
function nextButton()
{
var useranswer=0;
var marks= document.getElementById(“totalscore”).value; // By default the marks is 0
var counter=document.getElementById(“currentquestion”).value; // By default the counter value is 1
counter++;
if(counter