-
destroy object, make new one
Hi -
I have a web page with an object (a scrolling textbox) that I want to change due to user input.
Is there a way to destroy the object, and create a new one? That way I can pass the user's information to the constructor.
-
-
You can using the DOM (Document Object Model) where elements, treated as nodes of their parents, siblings or even children can be accessed for such purposes and new elements can be created and later appended in a similar fashion but, there are easier ways to get the same effect, though the DOM is sometimes the best. I'd need a better idea of what exactly you were trying to do.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks