I'm trying to build an anchor tag that uses one of those tel://xxxxxxxxxxx links to dial a number. But these links don't work on a non-phone computer.

Is there a way I can detect a phone so that I can dial the number on phones but copy the number to the clipboard on non-phone??

I want to support all phones possible so I don't want to do navigator sniffing..