Write A User Define Function that calling function as argument in javascript.
Code : udfcl.html
<html>
<head>
<script type="text/javascript">
function display(a,b)
{
return ("Goodafter noon");
}
</script>
</head>
<body>
<script type="text/javascript">
document.write(display());
</script>
</body>
</html>
Code : udfcl.html
<html>
<head>
<script type="text/javascript">
function display(a,b)
{
return ("Goodafter noon");
}
</script>
</head>
<body>
<script type="text/javascript">
document.write(display());
</script>
</body>
</html>
No comments:
Post a Comment