How can I check if a dynamically named object or function exists?
In example:
var str = \'test\'; var obj_str = \'Page_\'+str; function Pag
You can get a global by its name by writing window[obj_str].
window[obj_str]
Demo.