Bonjour,
J'ai créé des boutons pour mon site, et j'ai un probleme avec un seul d'entre eux... le bouton retour (JS: window.history.go(-1)).
J'ai bien ce code dans le bouton:
1 2 3 4
| this.onPress = function() {
my_button.gotoAndPlay(2);
button_sound2.start();
getURL("javascript:window.history.go(-1);void(0);"); |
Ca fonctionne sous Firefox, mais sous IE6 et IE7, rien à faire...
Quelqu'un aurait une explication sur ce probleme, et à defaut une solution...
EDIT: j'ai testé avec
getURL("javascript:window.history.go(-2);void(0);");
ça fonctionne aprés deux cliques sur le bouton... tout ça me parrait bizar, et ça ne resoud pas mon probleme!
Partager