[thelist] Js change mailto

fstorr fffrancis at fstorr.demon.co.uk
Sat Sep 28 06:58:01 CDT 2002


Hi all

I'm trying to change a mailto address depending on whether a checkbox is
checked or not.

The idea is that the normal address is: normal at foo.com and if the user
checked "this is urgent" I can change it to urgent at foo.com.

Not being great at JavaScript, I've got this far:

function formcheck()

	if document.letter1.userurgent.checked;
	{
		document.letter1.action="mailto:urgent at foo.com";
	}
	else
	{
		document.letter1.action="mailto:normal at foo.com";
	}


But not much further.  Help!

Cheers

Francis





More information about the thelist mailing list