Is this
<input type="button" value="..."
onclick="javascript: {ddwrt:GenFireServerEvent('__commit;__redirect={/Pages/Home.aspx}' ) }"
/>
the same (functionally) as
. . .
<script type="javascript/text>
function runIt() {
ddwrt:GenFireServerEvent('__commit;__redirect={/Pages/Home.aspx}' );
}
</script>
<body>
<input type="button" value="..."
onclick="runIt();" />
</body>
</html>
I don't really understand
what role the term "javascript:" in the
onclick
event description serves. I mean, isn't it the default that what is in the onclick will be javascript?what role the outer curly braces serve in the
..."javascript: {}"
.I recognize that "
ddwrt:
" is a namespace, but I am not aware of how to specify a namespace within a javascript function, which itself is located within a<script>
block.