lien vers un fichier à partir d’un bouton
:Je voudrais afficher un fichier à partir d’un bouton
Voici mon code html :
Code:
<input type="button" value= "Lien" name="Lien" onClick="loadfile()">
Voici mon code javascript :
Code:
1 2 3 4 5 6 7 8
|
function loadfile() {
fichier = "enquete.php";
page = window.open("");
page.document.open();
page.document.write(fichier);
page.document.close();
} |
Cette fonction permet normalement d’afficher mon nouveau fichier.
Hélas cela ne marche pas !
Pourriez vous m’aider ! :cry: