my first time here, first time posting, and not great at javascript.. etc.. so..
please forgive any breaches of etiquette I may commit while trying to get this problem solved (which has to be solved this morning)..
I’m trying to create a simple 4 question quiz – project standards requiring that any combination of answers redirects to an unique, flat html page, so the function looks like this:
function scoreTest(this.form){
var totalScore = ((form.Q1.value) + (form.Q2.value) + (form.Q3.value) + (form.Q4.value));
if (totalScore == “1357”) { openNew(‘sub/1357.html’) }
if (totalScore == “1358”) { openNew(‘sub/1358.html’) }
etc.. (with a sub page for all 16 possible variations to Yes/No answers)
it’s setting the document that I’m having trouble with..
I can’t figure out how to make 4 questions (each with a Yes/No radio) and submit all the radio values by using a final button ‘onclick=scoreTest(this.form)’
any help?
thanks in advance ( I think )