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

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>