script 'text' Example : Script « HTML « JavaScript DHTML
- JavaScript DHTML
- HTML
- Script
script 'text' Example
<html>
<body>
<script language="JavaScript" id="myS">
function function1() {
var m = document.all.myS.text;
alert(m);
}
</script>
<input type="button" value="View the script code for function1() function"
onclick="function1();">
</body>
</html>
Related examples in the same category