iPhone Webtricks

When creating a website specifically aimed at the iPhone, there are some cool things you can do to improve your visitor’s iPhone web-experience.
[ad]
Show a movie
It’s very easy to add a movie to a webpage. But, if you put an image in there instead, and link to the movie, the movie will open in the iPhone’s videoplayer instead of Safari.

<embed src=”mymovie.jpg” href=”mymovie.mov” widt=”380″ height=”290″>

Link to a telephonenumber
To add a link to a telephonenumber on a webpage, that will automatically be dialled when clicked, use this code:

<a href=”tel:01234567890″>Tel: 01234567890</a>

Hide the statusbar
Safari gives you the opportunity to automatically hide the statusbar when your webpage is being loaded:

<script type=”text/javascript”>
window.onload=function(){
window.scrollTo(0,1);
}
</script>

Enjoy!


5 Responses to “iPhone Webtricks”

  1. MyPicture and friend - http://girly-photo.blogspot.com/ says:

    nice post, friend.please come to my blog to see MY picture and friend [http://girly-photo.blogspot.com/]

  2. Kampanye Damai Pemilu Indonesia 2009 - says:

    Very nice info.i hope you come to my blog here Kampanye Damai Pemilu indonesia 2009

  3. Projetato - http://www.projetato.com.br says:

    Your site is very good, will ever read!
    Thanks

  4. F. Meissner - http://www.evernote.com/pub/fmeissner/fmeissnersnotebook/ says:

    Showing a movie not only improves user experience, it also improves the average time-on-site. This is a signal to google that your site is worthy of some attention, leading to better rankings.

  5. Read This Link » iPhone Webtricks - http://readthislink.com/4928/iphone_webtricks.html says:

    [...] iPhone Webtricks [...]

Leave a Reply

You must be logged in to post a comment.