how to make sure js is enabled before executing php function

how to make sure js is enabled before executing php function