salut, je voulais savoir comment on fait en javascript pour ouvrir une page avec l option target="_top" un truc du genre window.location = www.hardware.fr taret="_top" merci bien
window.open(url, target);
ca c'est de la reponse rapide :-)
window.open c'est l'équivalent de _blank pour l'équivalent de _top tu dois faire: top.location.href='www.hardware.fr';
bah si tu mets _top en target du window.open, ca devrait marcher...
bhen window.open ouvre d'office une nouvelle fenêtre, non ?
Pour quoi faire simple, quand on peut faire compliqué ?
Pourquoi chercher a faire simple quand on a un truc qui marche sans avoir a lire la doc ?