Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ smart_set_focus
Function
smart_set_focus
recipes/JavaScript/578517_Music_player/recipe-578517.js:174–186 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
172
}
173
174
function
smart_set_focus(s)
175
{
176
var
e;
177
try
178
{
179
e=document.getElementById(s);
180
e.focus();
181
}
182
catch(err)
183
{
184
}
185
return
;
186
}
187
188
function
capital_str(s)
189
{
Callers
nothing calls this directly
Calls
1
focus
Method · 0.45
Tested by
no test coverage detected