Trying to implement some javascript functions within the content editor. I have more advanced code to implement, but am not able to even execute the following code. The user defined function will not execute when the link is pressed.
<script type="”text/javascript”">
function Adding(a,b) {
alert(a+b);
}
</script>
<a href="javascript:Adding(3,4)">Click here to add two numbers</a>
This is implemented in a Content Editor. I can implement javascript defined functions, but it will not execute a user defined function like the example above.
Any thoughts? This is on a Sharepoint 2013 Enterprise corporate intranet.