Works on safari but not camino

hi


function expand_text(){
        alert('hello');
}

<a href="#" onclick="javascript:expand_text()"><b>Expand text</b></a>

any ideas?