1

Topic: On iphone the tag tel does not work

We do Wi-Fi authorization on a proceeding call. At connection to Wi-Fi networks, the authorization page where it is necessary to enter the number opens and further to call on certain number from this phone. On page there is button "Call".
The code:

<html>
<button type = "button" onclick = "onButtonCall ()"> to Call </button>
<script type = "text/javascript">
function onButtonCall (event) {
document.location.href = "tel: + 74951234567";
}
</script>
</html>

On iphone since 6 versions the tag tel: does not work.
Produces an error "it is not possible to open page by means of connection to a point of access Wi-Fi as the browser cannot pass to the addresses beginning with tel:."
Android fulfills normally, iphone 4,5 too.
There are any decisions?

2

Re: On iphone the tag tel does not work

And if to push on page number +7(495) 1234567 instead of button "Call" fulfills correctly.

3

Re: On iphone the tag tel does not work

outman;
tel is not present in the standard. Therefore here all on conscience of specific developers  a product. Here the person tried with tel to play - http://tods-blog.com.ua/web-development/tel-link/ - who here that is ready in general.

4

Re: On iphone the tag tel does not work

Dared exception JavaScript and to issue all through

<a href = "tel: + 74951234567"> to Call </a>

5

Re: On iphone the tag tel does not work

outman;
You on onclick () hung up the handler? I am simple something JS did not see...

6

Re: On iphone the tag tel does not work

outman;
, read as "connection" instead of "exception"...