Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adress bar is over text when you linking on page in iPad & iPhone

Status
Not open for further replies.

lantiqo

Programmer
Jun 24, 2012
19
SE
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


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];
		}
	}
}

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top