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
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
JavaScript:
function modLinks()
{ var links = document.getElementsByTagName('a');
for(var i=0;i<=links.length-1;i++)
{
if(links[i].getAttribute('tag')=='before')
{
links[i].href = '#/' + links[i].href.split('#')[1];
}
}
}