Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Feedback on: irt.org FAQ Knowledge Base Q879

irt.org | About | Feedback | 1879 [ previous next ]

Feedback on:
irt.org FAQ Knowledge Base Q879

Sent by
Maurice Lynch on October 18, 2000 at 10:00:10:

Worth:
Very worth reading

Comments:
Thanks for the code for cloning objects however when trying to copy a Form object in IE5.5 I get a "class not registered" error. Any ideas?

<html>
<head>
<script language="JavaScript">
function cloneObject(what) {
for (i in what) {
this[i] = what[i];
}
}
function copyForm() {
myform = new cloneObject(document.forms[0]);
alert(myform.elements[0].value);
}
</script>
</head>
<body>
<form>
<input type="text" value = "Hello">
<input type="button" value="Copy Form" onClick="copyForm()";>
</form>
</body>
</html>


Other feedback on 'irt.org FAQ Knowledge Base Q879' - show all


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 21st December 2007. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.