concatenate string with number and display result in alert box as well as web page
Hi, anywhere wrong in the below code? pls let me know.. Im getting output in alert box but not getting output on the webpage..
<html>
<head>
<title>assign-3(e)</title>
<SCRIPT language = JavaScript>
function add() {
var A = 'Hello World';
var B = 10;
C = (A B);
}
</SCRIPT>
</head>
<body>
<Input Type = Button NAME = b1 VALUE = "Add" onClick = "add(),alert(C),document.write(C)">
</body>
</html>