Issue in converting a HTML Link to Drupal Link using l() function
$current_path = check_url(drupal_get_path_alias($_GET['q']));
$onclick = 'loadQtiPlayer(' . $targetPath . ',' . $targetWindowHeight . ',' . $targetWindowWidth . ')';
print l('Start QTI Quiz', $current_path, array('fragment' =&gt; ' ', 'attributes' =&gt; array('onclick' =&gt; $onclick)));