Create a list
Write an interface to create a list from user input.
For every list item:
- Ask a user about its content using
- Create the
<li>with it and add it to
- Continue until the user cancels the input (by pressing Esc or CANCEL in prompt).
All elements should be created dynamically.
If a user types HTML-tags, they should be treated like a text.Demo in new window
Please note the usage of
textContent to assign the