Which Devices Support Javascript Geolocation via navigator.geolocation?

As of today, the W3C Geolocation API (widely associated with, though not technically part of, HTML 5) is support in the following major desktop browsers: Firefox (since 3.5) Safari (since 5.0) Google Chrome (version depends on OS) Opera (since 10.60) Internet Explorer (since IE 9) There are at least two mobile browsers that implement the … Read more

How to trigger a phone call when clicking a link in a web page on mobile phone

Most modern devices support the tel: scheme. So use <a href=”tel:555-555-5555″>555-555-5555</a> and you should be good to go. If you want to use it for an image, the <a> tag can handle the <img/> placed in it just like other normal situations with : <a href=”tel:555-555-5555″><img src=”path/to/phone/icon.jpg” alt=”Call 555-555-5555″ /></a>

Blocking device rotation on mobile web pages

New API’s are developing (and are currently available)! screen.orientation.lock(); // webkit only and screen.lockOrientation(“orientation”); Where “orientation” can be any of the following: portrait-primary – It represents the orientation of the screen when it is in its primary portrait mode. A screen is considered in its primary portrait mode if the device is held in its … Read more