y is this not working???
<script>
function appendXML() {
.............................
}
</script>
<span onclick="appendXML;"> bla bla </span>
thanks Kris
Printable View
y is this not working???
<script>
function appendXML() {
.............................
}
</script>
<span onclick="appendXML;"> bla bla </span>
thanks Kris
You need to make this change:
<span onclick="appendXML();"> bla bla </span>
nope still not working :S
Then there is an error in the JS, maybe you've forgotten a {,},(,) or ".
As above, it probably is being called, but there could be an error in the js code. Try changing this to match the above & run it...Code:<script>
function appendXML() {
alert('Hello World');
/* comment out all other code in function */
}
</script>
<span onClick="javascript: appendXML();"> bla bla </span>