JavaScript – Increament function

<HTML><HEAD><TITLE>ABC</TITLE>

<SCRIPT LANGUAGE=”JAVASCRIPT” TYPE=”TEXT/JAVASCRIPT”>
<!–
a = 23;
function ad()
{
a = (++a);
alert(a);
}
//–>
</script>
</HEAD>
<BODY>
<a href=”javascript:ad();” mce_href=”javascript:ad();” title=”Add more” name=”add”>

Add More Records

</a>

</BODY></HTML>

Like to share it

1 Comment. Leave new

Leave a Reply

Your email address will not be published. Required fields are marked *