You have a div tag you want to hide with the id “myElementID”. You want to show that same div again. Don’t forget to include
Add an Image to the DOM Dynamically
This example will work fairly well cross-browser. In IE it will use new Image and everything else it will use createElement. There are bugs in