Hi dear all,
I am dynamically creating html page as
document.writeln("<input type=\"button\" id=\"btn\" value=\"Table\" onclick=\"alert('xxxxxxxxxx'); test();\" />")
Here alert is calling ,but teste() method is not calling.I observerd that if we call any library function like print(), alert() it will be called.Pronlem for only userdefined functions.
Sanmple code is below
-----------------------
<HTML>
<HEAD>
<TITLE>
Applet Test </TITLE>
<SCRIPT LANGUAGE="JavaScript">
function graphdisplay()
{
alert("graphdisplay");
document.writeln("<input type=\"button\" id=\"btn\" value=\"Table\" onclick=\"alert('xxxxxxxxxx'); teste();\" />")
}
function test()
{
alert("teste---------------success")
}
</SCRIPT>
</HEAD>
<body onload="graphdisplay();">
<form id="inqform" name="inqform">
</form>
</body>
</HTML>
Please respond ASAP if anybody have any solution very urgrnt.
thanks
rakesh