Have a question regarding URL and jQuery.
Can I specify URL to tell jQuery to run a function?
e.g http://www.website.com/about.html?XYZ
to run a func
You can call a globally declared function using the window object:
function bar(str) { alert("hello" + str); } // assuming location is "http://example.com?bar" var fn = window.location.search.replace("?", ""); window[fn](" Dovhakiin"); // 'hello Dovhakiin'