can anyone help me here and tell me why this doesn't work?

<%
sub fnt()
response.redirect("http://www.microsoft.com")
end sub
%>
<button onClick='<%fnt()%>'/>

So when i click the button i should be redirected to microsoft.com?