Posted by Dylan Parry on 10/07/05 11:28
Using a pointed stick and pebbles, rf scraped:
>> document.write('<span onclick="myfunction(' + parameter + ')"></span>');
>
> or perhaps:
>
> document.write('<span onclick="myfunction(\"parameter\")"><span>');
Hmm, I was reading the OP as something else, ie. how to dynamically add
a parameter value using JavaScript to write the actual value based on a
variable named "parameter" which needed to be inserted into the function
call.
--
Dylan Parry
http://webpageworkshop.co.uk -- FREE Web tutorials and references
[Back to original message]
|