Automated HTML Focus Acquisition by IOS System


IOS system cannot automatically get HTML focus

// On normal browsers, JavaScript can be used to focus on an input box:
 var elem = document.getElementById(‘inputElementId’);
But on iOS phones, such code doesn’t work at all, only when focus is executed in functions that listen to user-initiated events.

var button = document.getElementById(‘btn’);
var inputElem = document.getElemntById(‘input-elem’);
button.addEventListener(‘click’, function(ev){



Recommended Today

Freeanchor: abandon single IOU matching, more free anchor matching method 𞓜 nips 2019

This paper abandons the previous method of assigning anchor and gt matching relationship according to the rigidity of IOU, and proposes freeanchor method to match more freely. This method defines the training of target detection as the maximum likelihood estimation (MLE) process, and simultaneously learns target classification, target detection and matching relationship from end to […]