<script>
function create_getElementById()
{
x=document.getElementById('first word').value;
y=document.getElementById('Second word').value;
alert(x+y)
}
</script>
<body>
<input type="text" id="txt1">
<input type="text" id="txt2">
<input type="button" value="click" onclick="create_getElementById()">
</body>
function create_getElementById()
{
x=document.getElementById('first word').value;
y=document.getElementById('Second word').value;
alert(x+y)
}
</script>
<body>
<input type="text" id="txt1">
<input type="text" id="txt2">
<input type="button" value="click" onclick="create_getElementById()">
</body>
0 comments: