Il mio problema è che non so come mostrare l'innerhtml della mia forma.Come posso usare innerhtml in JavaScript?
La forma è come una forma di indagine e una volta che si è fatto clic sul pulsante di invio, tutti i contenuti avevo risposto mostrerebbe come una pagina di riepilogo ...
function displayResult() {
var first = document.getElementById("first").value;
var middle = document.getElementById("middle").value;
var last = document.getElementById("last").value;
alert("oh");
var maincontent = document.getElementById("content").innerHTML;
maincontent = "<p>" + first;
}
Per uno che avrei sbarazzarsi di quella finale '" '. – jli
Scopri JSFiddle (http://jsfiddle.net) e mettere un esempio di codice HTML e JS, in modo da poter vedere cosa DOM stai lavorando con – Dancrumb
http://jsfiddle.net/8TtxV/ qui è :( – ghie