var hundenavn = prompt( \"hvad hedder din hund?\", \"\" ); document.hundeinfo.navnet.value = hundenavn;
</script>
</body> </html>
Hvis det ikke er noget i den retning du vil have så tag og post det du lavede (selvom også det ikke virker), det kan dog give et fingerpeg om hvor du vil hen.
1. Paste the code into the HEAD of your HTML document 2. Put the final code into the BODY of your HTML document -->
<!-- STEP ONE: Copy this code into the BODY of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE=\"JavaScript\"> <!-- Original: Ronnie T. Moore, Managing Editor --> <!-- Begin function showFAQ(form) { form.answer.value = form.question.options[form.question.selectedIndex].value; } // End --> </SCRIPT> </HEAD>
<!-- STEP TWO: Add this code into the BODY of your HTML document -->
<BODY>
<center> <form name=faqform> <table border=1 cellspacing=0 cellpadding=5> <tr bgcolor=\"#000099\"> <td align=center><font face=\"verdana,arial\" size=\"-1\" color=\"#ffffff\"> <b>Hjælp</b></font></td> </tr> <tr bgcolor=\"#ffffcc\"><td><font face=\"verdana,arial\" size=\"-1\"><br> Browse the Frequently Asked Questions below and click for the answer. <p> <ul><select size=10 name=question onChange=\"java script:showFAQ(this.form);\"> <option value=\"XXX hedder abe\"> --> Hvad hedder XXX <option value=\"3\"> --> 1+ 2 giver </select> </ul> <p> And Their Answers: <p> <ul> <textarea name=\"answer\" rows=15 cols=50 wrap=virtual></textarea> </ul> </font> </td> </tr> </table> </form> </center> </body> </html>
<form name=faqform> <table border=1 cellspacing=0 cellpadding=5> <tr bgcolor=\"#000099\"> <td align=center><font face=\"verdana,arial\" size=\"-1\" color=\"#ffffff\"> <b>Hjælp</b></font></td> </tr> <tr bgcolor=\"#ffffcc\"><td><font face=\"verdana,arial\" size=\"-1\"><br> Browse the Frequently Asked Questions below and click for the answer. <p> <ul><select size=10 name=question onChange=\"java script:this.form.answer.value+=\', \'+this.options[this.selectedIndex].value;\"> <option value=\"XXX hedder abe\"> --> Hvad hedder XXX <option value=\"3\"> --> 1+ 2 giver </select> </ul> <p> And Their Answers: <p> <ul> <textarea name=\"answer\" rows=15 cols=50 wrap=virtual></textarea> </ul> </font> </td> </tr> </table> </form>
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.