lien sur un appel de fonction en javascript
Bonjour,
J'ai le code suivant sur lequel je veux mettre un lien, c'est à dire, je dessine un graphe et je veux qu'en cliquant sur le graphe le client est redirigé vers une page.
voici mon code
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| <a href="www.x.fr">
<script language="javascript">
<%if(locale.getLanguage().equals("fr") && !graphCACUri.equals("")){%>
graph.repaint('<%=graphCACUri%>','<%=WebConstant.CAC_UNDER_ID%>');
<%} else if(locale.getLanguage().equals("en") && !graphSTOXXUri.equals("")){%>
graph.repaint('<%=graphSTOXXUri%>','<%=WebConstant.STOXX_UNDER_ID%>');
<%} else if(locale.getLanguage().equals("de") && !graphDAXUri.equals("")){%>
graph.repaint('<%=graphDAXUri%>','<%=WebConstant.DAX_UNDER_ID%>');
<%} else if(locale.getLanguage().equals("it") && !graphMIBUri.equals("")){%>
graph.repaint('<%=graphMIBUri%>','<%=WebConstant.SPMIB_UNDER_ID%>');
<%} else if(!graphUrl.equals("")){%>
graph.repaint('<%=graphUrl%>','<%=underKey%>');
<%}%>
</script></a> |
mais ça ne marche pas.
comment mettre un lien sur un appel de fonctione n javascript ?