Hi folks,
I like to add an argument to the url with onclick.. what's the right way to solve this? I'm new on the js and drupal.. :-(
I think I have to put something in

'#attributes' => array('onclick' => '$file_path'), ..... right?
But what exactly? url() or goto or href.. Can someone help me?

Cheers Apfel007

Comments

Apfel007’s picture

Is there any limitation on it?

If I insert '#href' = $path, nothing happens.. do someone work with it?