0
Help me, i want execute myFunc
3 ответов
+ 1
if you want to run your function from onclick attribute, you should add parenthesis.
if you assign onclick property (dynamically trough js rather than hardcoded in attribute), you should NOT put parenthesis...
anyway, your js code is invalid:
var x id="first"
var y id="last"
each var must have only one identifier (name without space)...
not sure of what you are trying to do, so you must correct that by yourself ^^
0
Thanx
0
Someone can advise me about javascript please?