<script>
function tumsathhomere()
{
document.getElementById('txt1').value="tum";
document.getElementById('txt1').style.color="sath";
document.getElementById('txt2').value="ho";
document.getElementById('txt2').style.color="mere";
}
</script>
<body>
<input type="text" id="txt1">
<input type="text" id="txt2">
<input type="button" value="javascript output" onclick="tumsathhomere()">
</body>
0 comments: