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.

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!

Leave a Comment





Pin It on Pinterest

Share This

Share This

Share this post with your friends!

%d bloggers like this: