View Full Version : Adress bar is over text when you linking on page in iPad & iPhone

07-21-2012, 08:55 PM
I added a tag, and it is used before the page finishes loading.
If you run the page in an iPhone or iPad (before the page finishes loading) the address bar is over the text when clicking on links, and you have to scroll to get to the top.

I want people to be on top without the address bar is over the text when you click on the links.

webpage (http://wwwlab.iki.his.se/~e11vicka/cafe2)

function modLinks()
{ var links = document.getElementsByTagName('a');
for(var i=0;i<=links.length-1;i++)
links[i].href = '#/' + links[i].href.split('#')[1];