Renvoyer le choix d'un bouton vers une autre page
Bonjour,
Je me suis retrouvé à faire un HTML un peu pars hasard. (là je dois modifier une page ASP)
Mais ça concerne du HTML.
- Je dois lorsque l'user clique sur un bouton ouvrir un pop up :
onclick= "window.open('popchoice.asp', '_blank' )"
- Dans cette pop-up j'ai 2 boutons "Excel" et "PDF"
Mon problème est maintenant comment je fais pour renvoyer le choix effectué dans cette pop-up dans ma page précédente?
(Pour pouvoir au final l'utiliser dans ma base de données, mais ça c'est mon problème :D )
Code de la pop-up :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <html>
<head>
<title>Export PDF Excel</title>
</head>
<body text="#000000" bottommargin="0" leftMargin="0" link="navy" vlink="navy" alink="red" topMargin="0" MARGINWIDTH="0" MARGINHEIGHT="0">
<table>
<tr>
<td>
<input type="button" name="Excelexp" value="Excel" onclick="self.location.href='lien.html'" style="background-color:#3cb371" style="color:white; font-weight:bold"onclick>
</td>
<td>
<input type="button" name="Pdfexp" value="PDF" onclick="self.location.href='lien.html'" style="background-color:#3cb371" style="color:white; font-weight:bold"onclick>
</td>
</tr>
<tr>
<td>
<input type="button" name="retour" value="retour" onclick=window.open("self.location.href='bi4crm.asp'", "MsgWindow", "width=200, height=100") style="background-color:#3cb371" style="color:white; font-weight:bold"onclick>
</td>
</tr>
</table>
</body>
</html> |
Merci d'avance
Arnaud