mirror of
https://github.com/rn10950/RetroZilla.git
synced 2024-11-14 03:30:17 +01:00
26 lines
547 B
HTML
26 lines
547 B
HTML
|
<HTML>
|
||
|
<HEAD>
|
||
|
<TITLE>Clone test</TITLE>
|
||
|
<SCRIPT>
|
||
|
function clonePara()
|
||
|
{
|
||
|
var p = document.getElementsByTagName("P")[0];
|
||
|
var newp = p.cloneNode(true);
|
||
|
|
||
|
document.body.appendChild(newp);
|
||
|
}
|
||
|
</SCRIPT>
|
||
|
</HEAD>
|
||
|
<BODY>
|
||
|
<H1>Clone test</H1>
|
||
|
|
||
|
<P>If you press the button <B>below</B>, this paragraph and the
|
||
|
image <IMG SRC="flamer.gif"> will be <FONT SIZE=+3>cloned</FONT>.
|
||
|
If you see an <I>exact</I> copy of this paragraph, the test
|
||
|
succeeded.</P>
|
||
|
|
||
|
<FORM>
|
||
|
<INPUT TYPE="button" NAME="clone" VALUE="Clone" onClick="clonePara();">
|
||
|
</FORM>
|
||
|
</BODY>
|
||
|
</HTML>
|