Monday 16 July 2012

How to create Function that returns a value using javascript


<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function myFunction()
{
return ("Hello world!");
}
</script>
</head>
<body>

<script type="text/javascript">
document.write(myFunction())
</script>

</body>
</html>

0 Responses to “How to create Function that returns a value using javascript”

Post a Comment