Home > UI/UX Development > JavaScript (Page 5)

Event bubbling and capturing in Javascript

Event bubbling and event capturing are two ways of event propagation in DOM structure.Ex. There are two HTML elements embedded in one another as:Event bubbling: the event is captured in span element first and then in div.Event Capturing: the event is captured in div element first and then in span.Browser Support: In older

This Article is TAGGED in , . Read more

How to add pin on page load and move it anywhere on Google map using JavaScript

Demo: PinOnMap Here is the source code to show pin on Google map using JavaScript: <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript"> [crayon-6890996eed03a365635000/] </script> // html code <body onload="initialize(new google.maps.LatLng(18.5203,73.8567))" style="font-family: Arial; border: 0 none;"> <input type="text" size="52" name="address" id="Address" />

This Article is TAGGED in , , . Read more

How to do Image preview before upload using jQuery

Demo: ImagePreview Here is the source code for image preview before upload using jQuery: <script src="http://mundrisoft.com/js/jquery.min.js"></script> <script type="text/javascript"> [crayon-6890996eed2c8479933601/] </script> [crayon-6890996eed2ce114302061/] Please drop comment if you have any question :)

This Article is TAGGED in , . Read more