Can a javascript array value be used in an onclick event?
I haven't been successful in getting it to work so I'm wondering if it
even can be done.
onclick="calcul ate('some array value');
I've tried:
onclick="calcul ate('<script
type="text/javascript">doc ument.write(poi nts[0]);</script>');
There's conflict with the quotes, but beyond that, I'm unclear if this
is even a viable option...anyone ?
I haven't been successful in getting it to work so I'm wondering if it
even can be done.
onclick="calcul ate('some array value');
I've tried:
onclick="calcul ate('<script
type="text/javascript">doc ument.write(poi nts[0]);</script>');
There's conflict with the quotes, but beyond that, I'm unclear if this
is even a viable option...anyone ?
Comment