Friday, August 16, 2013

JavaScript replace method

<html>
<body>

<script type="text/javascript">

var str="Visit Microsoft!";
document.write(str.replace("Microsoft","Systech Digital Ltd."));

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

Result

No comments: