17,230
edits
(Created page with "if (wgPageName == "Main_Page") { addOnloadHook(function() { document.getElementById("searchInput").focus(); }); }") |
(addOnloadHook -> jQuery) |
||
Line 1: | Line 1: | ||
if (wgPageName == "Main_Page") { | if (wgPageName == "Main_Page") { | ||
jQuery(function() { | |||
document.getElementById("searchInput").focus(); | document.getElementById("searchInput").focus(); | ||
}); | }); | ||
} | } |