Hi Friends, Sorry for not updating blog regularly. I have been busy in projects So not getting time to update my blogs regularly. Anyway today I am writing this post to provide code for allowing only numbers in textbox by using onkeypress event for textbox. You can use this validation in a phone field of … Read more

Hi Friends, Two days ago I was working on a project in which I needed to call one file on when user close browser, or leave current page and go to another page or use back button of browser etc.. In short I need to call file via Ajax when anyone leave page. For example … Read more

Hi Friends, Some days ago I was working on one project in which I Have to use Ajax to populate select drop down box of states when selecting one country from first select drop down box. Now i implemented it properly and I checked it in Mozilla, Google Chrome and it was working properly. But … Read more

Hi Friends, Today I am going to write that how can we check or alert that what a JavaScript Objects contains or what properties or what attributes a JavaScript object having. Usually we are doing debugging in PHP by echo exit method and in JavaScript using alert or document.write, But sometime it happened that when … Read more

Hi Friends, In this article I will explain that how we can know URL , URL parts and URL Protocol (http or https) by javascript, all programmer may be know about how to get URL and its parts by PHP , but some of them know about Javascript,So i thought to post it on my … Read more

Hello Friends, Some days ago I was working on one project in which I have to redirect site to its mobile website when it opens in iPhone,iPad,iPod,Blackberry and Android by Javascript.I have searched so many time on internet and lastly found one code which was not working perfectly for all devices. So I have changed … Read more