Inserer un popUp

Fermé
Arbitta Messages postés 76 Date d'inscription jeudi 5 mars 2015 Statut Membre Dernière intervention 16 février 2016 - 21 mars 2015 à 17:28
keitamomo Messages postés 27 Date d'inscription mardi 11 septembre 2012 Statut Membre Dernière intervention 24 octobre 2017 - 24 mars 2015 à 00:37
Salut ,
j'ai une page php et je veut insérer de dans un bouton qui ouvre un popup sur la même page. Cet popup contient un champ texte et un bouton enregistrer.
quelqu'un peut m'aider s'il vous plait .
j'ai essayé ce code mais ça ne marche pas.
<a href="popup.php" onclick="window.open('popup.php');">
Mercii.

3 réponses

il suffit de créer un bouton :


//le bouton :
<button onclick=' window.open("popup.php","Ma popup", "resizable=no, menubar=no, scrollbars=n­o, width=800, height=600");' >
MON BOUTON
</button>
0
jordane45 Messages postés 38238 Date d'inscription mercredi 22 octobre 2003 Statut Modérateur Dernière intervention 6 septembre 2024 4 689
23 mars 2015 à 18:22
Bonjour,
ouvre un popup sur la même page.

... ceci n'est pas un POPUP mais une fenêtre MODALE.

Sachant que cela se fait en JAVASCRIPT et non en PHP !

Voici quelques exemples :
https://www.sitepoint.com/14-jquery-modal-dialog-boxes/




0
keitamomo Messages postés 27 Date d'inscription mardi 11 septembre 2012 Statut Membre Dernière intervention 24 octobre 2017
24 mars 2015 à 00:37
BONSOIR A TOUS.

JE TE DONNE UN EXEMPLAIRE. JE VEUX PAR EXEMPLE OUVRIR LA PAGE NOMMÉE listed.php EN POPUP. LE LIEN EST : LISTES DES DONS ET ENTREES EXCEPTIONNELLES .

<a href="#" onClick="javascript:open('listed.php','ma_fenetre_popup','toolbar=no,menubar=no,scrollbars=yes,status=no,width=800,height=500,location=no,resize=no,left=100,top=100');" title="Voir Apperçu">LISTES DES DONS ET ENTREES EXCEPTIONNELLES</a>
0