Team:Groningen/create desc
From 2010.igem.org
(Difference between revisions)
Line 2: | Line 2: | ||
<html> | <html> | ||
<script language="JavaScript"> | <script language="JavaScript"> | ||
+ | var cur=""; | ||
function characteristics() { | function characteristics() { | ||
var txt = ""; | var txt = ""; | ||
Line 25: | Line 26: | ||
} | } | ||
function post() { | function post() { | ||
- | + | cur = document.getElementById("formpje").innerHTML; | |
var txt = ""; | var txt = ""; | ||
var ok = false; | var ok = false; | ||
Line 32: | Line 33: | ||
txt = txt + "<textarea>"+txt+"</textarea>"; | txt = txt + "<textarea>"+txt+"</textarea>"; | ||
+ | txt+='<form onSubmit="restore(); method="post"><input type="submit"></form>'; | ||
if (ok) { | if (ok) { | ||
document.getElementById("formpje").innerHTML = txt; | document.getElementById("formpje").innerHTML = txt; | ||
Line 37: | Line 39: | ||
return false; | return false; | ||
+ | } | ||
+ | |||
+ | function restore() { | ||
+ | document.getElementById("formpje".innerHTML=cur; | ||
} | } | ||
</script> | </script> |
Revision as of 20:25, 26 October 2010