iphone web pages....
iphone web pages....
- Started
- Last post
- 9 Responses
- 1pxsolid
Can you have a link in a webpage that, when viewed on an iphone links to a phone number and calls it?
- dibec0
yes. hitting a formatted number will prompt to call.
- dibec0
;)
- boobs0
What's the code to re-direct the iPhone from your regular web site, to the special one you've formatted for the iPhone?
- 1pxsolid0
boobs: there's a js script for that... but essentially to serve an iphone enabled site, you'd detect what device the user is on and redirect to the correct site like iphone.qbn.com
- boobs0
Yeah. What's the script for that?
- 1pxsolid0
hahaha search google lazy ass.
- 1pxsolid0
eg:
<script language="javascript" type="text/javascript">
<!--
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)))
{location.href='http://www.combsconsulting.com//iphone/index.html';}
-->