According to the opinions of small rain friends, add a parameters to Runcode, the so-called "too dead": (first edition: http://blog.9cbs.net/catally/archive/2004/11/13 /180487.aspx)
Code:
New page 1 Title>
hEAD>
Function Runcode (TXTARGET) / / Define a function of running code,
{
Var code = txtarget.value; // To run the code, the contents of Textarea, Runcode is the name of Textarea.
VAR newwin = window.open ('', ',' '); // Opens a window and assigns the variable newwin.
Newwin.opener = null / / Prevent code from modifying page
Newwin.document.write (code); // Write the code Code in this open window so that the run code function is implemented.