-
The code for my button on click event doesnt work....think the syntax is incorrect..any suggestions?
Function btnUpdate_onclick(){
var strAddress = 'FinancialYear.asp?Action="U"' +
'&yearstart=' + document.form1("yearstart").value +
'&yearend=' + document.form1("yearend").value +
'&userid=' + document.form1("userid").value +
window.location = strAddress
Thanks In advance!
-
Hi,
Try this and see if it works:
Code:
Function btnUpdate_onclick(){
var strAddress = 'FinancialYear.asp?Action=U' +
'&yearstart=' + document.form1.yearstart.value +
'&yearend=' + document.form1.yearend.value +
'&userid=' + document.form1.userid.value
window.location = strAddress
I gather that 'yearstart','yearend' and 'userid' are fields in your form 'form1'!
Hope this helps,
Shaun