Hello,
I have this code how can i make it onClick each time it visits the function:
I have this code how can i make it onClick each time it visits the function:
Code:
<html>
<head>
<script>
C();
function C()
{
document.write("<input type='button' value='click me!' onclick='check()'/>");
}
function check()
{
alert("YO");
C();
}
</script>
</head>
<body></body>
</html>
Comment