Pass the name of the button as a parameter
"Nithya Venkatachalam" <vn*****@gmail.com> wrote in message
news:ch********@odah37.prod.google.com...
Hi,
<body onUnload="unloadhandler();">
<input type="button" name="Save" onClick="onclickhandler();"/><br>
function onclickhandler()
{
document.location.href="http://www.google.com";
}
so, on clicking button , unloadhandler is called.
function unloadhandler()
{
i want the name of the button clicked(Save) here.
is it possible?
}
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.744 / Virus Database: 496 - Release Date: 8/24/2004