如何使此链接在同一窗口打开而不是Safari [iPhone webapp]

时间:2010-12-30 22:17:36

标签: html iphone web-applications href

<style type="text/css">

        html, body {
    background-repeat:no-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>

我做错了什么? 我怎么做它所以它打开在同一个paga而不开始野生动物园?

1 个答案:

答案 0 :(得分:1)

你没有做错任何事。无论如何,所有外部超链接都将导致Mobile Safari启动。您无法在网络应用中更改它。

如果您坚持使用Ajax调用,内部链接可以保留在您的Web应用程序中,但由于同源策略,您无法使用Ajax打开外部站点。