how to call a phone number through javascript without using tag?

后端 未结 4 1732
有刺的猬
有刺的猬 2020-12-29 03:33

I designed a mobile web page. There I have a phone number field, which on clicking should call that particular number. I can\'t use:



        
4条回答
  •  春和景丽
    2020-12-29 04:11

    You can simply add an onclick handler to your tag, then call window.open("tel:+1800229933");.

    Like so:

    Phone: 900 300 400

提交回复
热议问题