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:
The certain answer for the title of the question, hence, without using The target tag is to make a helper function to simulate the action of const simulateCall = phoneNumber => window.open(`tel:${phoneNumber}`, '_self');
_self causes we have an exact look like call simulation just like clicking const callHandler = phoneNumber => () => {
// I want to do something here then make a call
simulateCall(phoneNumber);
};
~~~