Click here to Skip to main content
15,918,243 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Iam developing an application with jquery mobile,

I have given onclick event for div,

It is opening two tabs in iphone, in other mobile devices it is working fine...


In ASPX Page

XML
<div id="divMapCanvas" runat="server" style="width:100%;">
            </div>



IN CS PAGE::

C#
divMapCanvas.Attributes.Add("OnClick", "javascript:return OpenDirectionsUrl('" + GetdirectionsURL + Storeaddress + "');");


Javascript::


C#
function OpenDirectionsUrl(Url) {
    //alert("!");
    window.open(Url, "_blank");
    return false;
}
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900