How do I make this link to open on same window and not safari [iPhone webapp]
<style type="text/css">
html, body {
background-repeat:n开发者_开发问答o-repeat;
font-family:"helvetica";
margin: 0;
}
#picture {position: absolute;
top: 0;
right:0px;
height: 60px;
width: 60px;}
}
</style>
<A HREF="http://www.site.com/cool/somthing.html"><img src="teddy.png" alt="Small Image" id="picture"></a>
What are i doing wrong? How do i make it so it opens on the same paga and dont start safari?
You're doing nothing wrong. All external hyperlinks will cause Mobile Safari to launch, no matter what. You can't change that in your web app.
Internal links can remain in your web app if you stick to Ajax calls, but due to the same-origin policy you cannot use Ajax to open external sites.
精彩评论