hi,
i have an app that has a button like this:
<img src="c:\upd.jpg" onclick="return OnButton1();"></img>
when the button is clicked, it executes this javascript that goes to another page called update.asp:
i like to be able to pass some values with this function. i understand that i can put it in a hidden field, since it submits a form. but i like to pass it from page to page using the above function.
thanks.
i have an app that has a button like this:
<img src="c:\upd.jpg" onclick="return OnButton1();"></img>
when the button is clicked, it executes this javascript that goes to another page called update.asp:
Code:
function OnButton1()
{
var msg = "update button was clicked!";
document.Form1.action = "update.asp"
document.Form1.submit(Form1);
return true;
}
</script>
thanks.