stuart-d2
3/7/2016 - 5:28 PM

Basic jScript Web Scaffold.js

Basic jScript Web Scaffold.js

/*
A basic javascript scaffold template, considering input, the function and output.  
<<>> are variable areas.  
*/
 
 
<!DOCTYPE html>
<html>
<body>

<p>Click the button</p>

//input
<button onclick="<<fName>>()">Click</button>

//output
<p id="output"></p>

<script>
//function
function <<fName>>() {
    var someVarA;
    var someVarB;    
	//Logic to preform some task considering input and output
		return someReturn; 
	
	// Output back to the user
		document.getElementById("output").innerHTML = someReturn;
}
</script>

</body>
</html>