Thanks. That almost works but needs to be:
[(A('click me', _href='#', _onclick="alert('hello')"),None,None)]
On Thursday, 30 August 2012 00:29:12 UTC+1, Massimo Di Pierro wrote:
>
> response.menu = [(A('click me',_onclick="alert('hello')"),None,None)]
>
> On Wednesday, 29 August 2012 18:22:25 UTC-5, simon wrote:
>>
>> Can I call a javascript function from a menu?
>>
>> I have tried replacing the menu url with "javascript: alert('hello')"
>>
>> However it seems to show the alert twice.
>>
>
--

