How To re-Focus To a Text Field When Focus is Lost on a HTML Form?

How to re-focus to a text field when focus is lost on a HTML form?

HTML:

<input type='text' id='thingy' onblur="refocus(this);">

Script:

function refocus(elm) {

    setTimeout(go, 0);

    function go() {
        elm.focus();
    }
}

Berlangganan update artikel terbaru via email:

Belum ada Komentar untuk "How To re-Focus To a Text Field When Focus is Lost on a HTML Form?"

Posting Komentar

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel