please this is my code and i want help
anytime i input a name into the text box, and clicks the “click here” button, the result appears on top of the text box
i want to be able to control where the result apperas, and maybe the font size etc of the result, any help??
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<p id=”demo”></p>
ENTER YOUR NAME :
<input type=”text” name=”fname” id=”fname”>
<button onclick=”showName();”>CLICK HERE</button>
<script type=”text/javascript”>
function showName()
{
var x = document.getElementById(“fname”).value;
document.getElementById(“demo”).innerHTML = x;
}
</script>
</body>
</html>