问题
I would like to trigger a tel:12345
HREF using only Javascript, not with an anchor. I simply want to grab the value of an input field and use JS to prompt the user to call the number typed in. My trigger will be a button located next to the field.
Suggestions?
回答1:
Use:
window.open('tel:12345');
来源:https://stackoverflow.com/questions/16781772/trigger-phone-call-with-javascript