Location: PHPKode > scripts > jsCheck > jscheck/example.php
<?php
require("class.jscheck.php");
# This example is using the form-methond through checkJsByForm()
$js = new jsCheck;
$js->checkJsByForm();

if($js->isJsActivated() === true) {
# After the call to checkJsByForm() is done we use the function isJsActivated to see if JS is activated or not.
# The function returns true if activated and false otherwise.
	echo "JavaScript is activated!";
}
else {
	echo "JavaScript is not activated!";
}
Return current item: jsCheck