please ,I want the code to send a message to a mobile number( in basic)
Function sms(tel, body)
If InStr(navigator.appVersion, "iPhone") Then
location.href="sms:" & tel & "&body=" & encodeURIComponent(body)
Else
location.href="sms:" & tel & "?body=" & encodeURIComponent(body)
End If
End Function
wher i but this function ?
i want if click button then send msg(I am in danger) to phone number like 911
@amagg’s answer is correct.
Have a look at the HelloWorld sample to see how to run code when a button is clicked.