Wednesday, 29 February 2012

Replacing text codes in a string


<html>
<body>

<script type="text/javascript">

var str="Hello all";
document.write(str.replace("Hello","All"));

</script>
</body>
</html>

No comments:

Post a Comment