I developed coding to pullout which check boxes were selected. This was done in I E. after completing and debugging the code I put it on the web page and then tried it in Netscape 4. and Netscape 6. It does not work in either Netscape. I would like someone would tell me what I did the wrong.
Netscape, in debug, gives an error on the name property, when something has been selected
The coding follows
function goahead()
{
counter = 0
var form = document.forms[0]
for (i = 0; i < form.elements.length; i++) { if (form.elements[i].type == "checkbox" && form.elements[i].checked ) { counter ++ selection = selection +form.elements(i).name+ ", " form.elements(i).checked = false }} if (counter ==0) { alert( "You have not selected any concerns, there is nothing to send. If you wan to contact us click on -Contact us - from the home page") } else { alert("You are requesting aditional informqtion. Please click - send email - and enter your name and email address so we can get back to you on your concerns") //write selection here then clear form.sendit.focus() setCookie("concerns=", selection, today, path, domain, secure) selection = "" } } The coding can also be found at www.healthandwealthplus.com, and selecting Investigate the products that interest you with your own personal health profile questionaire