Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 ALL


  Removing all child nodes from an element

When manipulating the DOM, it's often useful to remove all child nodes from a specific element. This typically comes in handy when you're looking to replace the content of an element with a separate form element, such as an <input>, so the user can edit the actual value.Here's an example of something I recently created that illustrates my point:Get the Flash Player to see this player.These "dynamic form elements" are written to the page only when the user performs a certain action; in this case: clicking on a table cell.The HTML for the table cell ...

3,144 0       JS DOM REMOVE ALL CHILDREN CLEAR JAVASCRIPT CODE


  JavaScript showModalDialog method

In JavaScript, showModalDialog()  method creates a simple modaldialog box which is a simple html page but when a modal dialog opens, user can't switch to another page until it closes the modal dialog box.Syntax:  window.showModalDialog( url, arguments, feature options); Where url is the URL of page which is to be opened in modal window and argumentsare those arguments which we are passing to the modal window and featureoptionsare the attributes set for the modal window.Description of code:Suppose we have an image file and we want to view that particular image fileinto a separat...

10,259 0       JAVASCRIPT JS SHOWMODALDIALOG EXAMPLE