How to detect whether a user is on homepage using javascript/jquery in Osclass classifieds script -
how detect whether user on homepage using javascript/jquery in osclass classifieds script.
i know similar function available in osclass php helpers i.e. osc_is_home_page() need in javascript/jquery.
enqueue script if home page. more helpful.
if(osc_is_home_page()){ osc_register_script('script_id', 'scripturl', 'dependency'); osc_enqueue_script('script_id'); }
Comments
Post a Comment