Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
182
rated 0 times [  188] [ 6]  / answers: 1 / hits: 15418  / 10 Years ago, sun, may 25, 2014, 12:00:00

My client needed a hyperlink for a click to call feature so i include following line



<a href=tel:917387084384>Call +91-7387084384</a>


However, requirements have changed from hyperlink to button, so need to know how to include click to call feature with a button



please let me know if you need any clarifications from my side. thanks.


More From » php

 Answers
10

Step-by-step guide to turn a hyperlink into button:




  1. Rename the a tag into form and the href attribute into action:



    <form action=tel:917387084384>Call +91-7387084384</form>


  2. Wrap the text into a button tag:



    <form action=tel:917387084384><button>Call +91-7387084384</button></form>


  3. Add the type attribute to the button tag and set it to submit:



    <form action=tel:917387084384><button type=submit>Call +91-7387084384</button></form>




And you're done!


[#70858] Thursday, May 22, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
hakeemabramh

Total Points: 234
Total Questions: 109
Total Answers: 109

Location: Romania
Member since Mon, Jun 6, 2022
2 Years ago
hakeemabramh questions
;