MediaWiki:Gadget-searchFocus.js

From OpenWetWare
Jump to: navigation, search
if (wgPageName == "Main_Page") {
    addOnloadHook(function() {
        document.getElementById("searchInput").focus();
    });
}