The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Function name as variable? Re: Function name as variable?


I have to make it dynamic because I’m calling it from a click and checking some things before deciding which function to call. For example I’m checking screen size and then calling functions based on that as well as another value. The two put together make up the existing function name.