Hi all, I've to show, how to integrate Google reCAPTCHA in PHP form. reCAPTCHA protects your website from spam and abuse in form submission. reCAPTCHA uses an advanced risk analysis engine and adaptive challenges to keep automated software from engaging in abusive activities on your website. Here I've
Javascript
Fetching current location address using GeoLocation and Google Map
HTML Geolocation API is used to fetch geographical position of a user. It can be possible only the user approves it. Geolocation is more accurate for the GPS Enabled mobile devices and others less accuracy. In this post how retrieve the address using Geolocation and Google Map API. HTML <html> <body> <input type='button' value='Find
JavaScript Function urldecode, in_array, implode and explode
In this post, we will be making JavaScript functions such as urldecode in_array implode explode urldecode function urldecode (str) { return decodeURIComponent(str.replace(/+/g, ' ')) } in_array in_array equivalent function in JavaScript 1.6 Array.indexOf , but it is not supported in older browsers. function in_array(needle, haystack) { var key = ''; for (key in haystack) { if (haystack[key]
Pure Javascript Countdown Timer
Hey guys! Countdown timers used for New website launching, Offering Deal or Shopping deadlines in Ecommerce website, Movie release, Shows, online exams and more. Countdown timers can be useful for all online activities. I've share the simple countdown timers script using pure JavaScript. Input format: var target_date = new Date(2020,6,28,0,0,00).getTime(); //var target_date =
Jquery Capture cmd + enter / control + enter Event
In Social network, the alternative way to submitting the status/message by pressing control+enter. Sample script for submitting message by using Jquery. <script type="text/javascript"> $(function (){ $(document).on("keydown", "#text", function(e) { if ((e.keyCode == 10 || e.keyCode == 13) && (e.metaKey || e.ctrlKey)) alert("Ctrl Enter Pressed") ; }); }); </script> <textarea id="text"></textarea>
Javascript Dynamically Change Web Pages Title
Javascript convert numbers to words
Javascript function for converting numbers to words. If your input is 123456 it will convert "One Lakh Twenty Three Thousand Four Hundred and Fifty Six". function convertNumberToWords(amount){ var words = new Array(); words[0]=''; words[1]='One'; words[2]='Two'; words[3]='Three'; words[4]='Four'; words[5]='Five'; words[6]='Six'; words[7]='Seven'; words[8]='Eight'; words[9]='Nine'; words[10]='Ten'; words[11]='Eleven'; words[12]='Twelve'; words[13]='Thirteen'; words[14]='Fourteen'; words[15]='Fifteen'; words[16]='Sixteen'; words[17]='Seventeen'; words[18]='Eighteen'; words[19]='Nineteen'; words[20]='Twenty'; words[30]='Thirty';