Quote:
Originally Posted by dozey
Code:
<a onclick="test({name:'Item Name', price:4.95});">click</a>
function test(item)
{
alert(item.name + ': $' + item.price.toFixed(2));
}
|
ooo that is neat, takes care of the persistent vars problem too, thanks dudes. The help here is better than any programming forum would do
