We are constantly trying to improve PHP Freaks and these forums, so feel free to go to the PHPFreaks Comments/Suggestions board and point out anything you'd like to see different!
0 Members and 1 Guest are viewing this topic.
if (typeof ChgTxt == 'function') {
It is necessary that the function returns the value.Use return operator in function body.
function ChgTxt() { // your code return boolValue;}if(ChgTxt) alert('True!')else alert('False!')