How to pass (function with parameter) as parameter?

How to pass (function with parameter) as parameter?

  1. <a onclick="test('abc')">test</a>

  1. var fun1 = function( param ){
  2. // do something
  3. }

  4. var test = function( text ){
  5.    
  6.     $('.element').click( fun1(text) );
  7. }


I had this code, but browser will call fun1(text) directly instead of hold on and wait until user clicks on the link. Is there any solution to this? I do understand the issue is browser treat line 7 fun1 as a function call, not as a parameter.

Thanks.