Я делаю мобильный сайт, и я новичок. Я не мог получить изображение linkt load the herf (iOS6). Я пытаюсь использовать метод вызова тэга j query mobile tap hold
как бы я мог обратиться к такому телесту, используя этот способ
<a id="phone" herf="tel:2062710041"> <img src="call.gif" width="40" height="39"></a></div>
<script>
$("phone").on('taphold', 'phone', tapholdHandler());
function tapholdHandler() {
href = "tel:12062710041";
}
</script>
Пытаться
function tapholdHandler() {
window.location = "tel:12062710041";
}
Измените $("phone")
на $("#phone")
пример
<script>
$("#phone").on('taphold', {duration: 1000}, tapholdHandler());
function tapholdHandler() {
href = "tel:12062710041";
}
</script>