faire un target=_top - HTML/CSS - Programmation
Marsh Posté le 04-10-2002 à 15:47:31
window.open c'est l'équivalent de _blank
pour l'équivalent de _top tu dois faire:
top.location.href='www.hardware.fr';
Marsh Posté le 04-10-2002 à 15:54:41
bah si tu mets _top en target du window.open, ca devrait marcher...
Marsh Posté le 04-10-2002 à 16:02:17
bhen window.open ouvre d'office une nouvelle fenêtre, non ?
Marsh Posté le 04-10-2002 à 16:04:36
lorill a écrit a écrit : bah si tu mets _top en target du window.open, ca devrait marcher... |
Pour quoi faire simple, quand on peut faire compliqué ?
Marsh Posté le 04-10-2002 à 16:32:21
antp a écrit a écrit : bhen window.open ouvre d'office une nouvelle fenêtre, non ? |
Marsh Posté le 04-10-2002 à 16:32:58
gm_superstar a écrit a écrit : 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 ?
Marsh Posté le 04-10-2002 à 15:36:38
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