Call fancybox on page load
Some time we need to show an message in popup when someone enters in our website.Its easy to call fancybox on page load when we use fancy box make sure you have included fancybox core files and jQuery Here is …
How to clear the placeholder on focus
By default place holder will stay there when we click on the text box, We can do it by writing simple code with javascript as follows Don’t forget to include jQuery The above code is mentioned only for text boxes …
Redirect to a new page if javascript is disabled
We can simply redirect from a page if javascript is disabled Here is the code to do so
Finding difference between two dates using javascript
When we need to calculate the difference between two dates using javascript we need to convert the string to date and here is the code to do this And to find the difference in hours And to find the difference …