Create and append a HTML element dynamically using javascript. var divTag = document.createElement(“div”); divTag.id = “divID”; divTag.setAttribute(“align”,”center”); divTag.style.margin = “0px…
This is a quick and easy way to read a files content into a string, or write a string to…
You may want to direct the browser view to a particular part of your page, either when the page is…
Format a large integer (long) that represents a file size in bytes to a more readable string representation that includes…
There may be some situations where you would like to retrieve the size of a given file. Below is a…
As part of a project I am working on, I need to request a user to specify their primary language.…
In almost all cases, it is a good practice to validate the users input because of many reasons (i.e. security,…
Use: String.fromCharCode(charCode) e.g: var str1=String.fromCharCode(65) will return “A” charCodeAt(index) returns the char code for the character at a given index…
Sometimes we need the user to enter only numbers in a text field, so I have found a small piece…
ASCII and HTML code table # Symbol HTML Code | # Symbol HTML Code 32 [Space]   | 143 …