To get current domain name of the page.
When you coding for dynamic website, you may need to know screen resolution of the client's machine. How can you get it?
There are several reasons we need to make numeric only textbox in our web form and here is how to restrict textbox input. Actually, it is not only for numeric textbox validation. It is also useful for many things. For example: textbox for email, phone number, Fax number and so on.
Cookie is a small text file that's stored in user's browser. They're mostly used for storing user preferences. It save the data with name-value pair format. Following function can be used to create and retrieve cookie values.
Comment is the description of the code and used to prevent the execution of a code block. It’s one of the first things coder have to learn. It is used to make the code more readable. It's important best practices when writing code. All professional code should have comments. It is not easy to understant the logic behind the code without comments.