js-identifiers/index.php

<?php include '../config.php' ?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>Validation of JavaScript identifiers</title>

	<?php include DOCROOT.'header.php' ?>
	<script src="script.js"></script>
	<style>#output span {font-weight:bold}</style>
</head>
<body>

	<h1>Validation of JavaScript identifiers</h1>

	<form id="form" action="check.php" method="get">
		<p>
			<input name="callback" placeholder="callback">
			<input type="submit" value="Check">
		</p>
	</form>

	<p id="output"></p>

	<hr>

	<h2>Reserved keywords</h2>
	<p>break, do, instanceof, typeof, case, else, new, var, catch, finally, return, void, continue, for, switch, while, debugger, function, this, with, default, if, throw, delete, in, try, class, enum, extends, super, const, export, import, implements, let, private, public, yield, interface, package, protected, static, null, true, false</p>

	<h2>Regular expression used</h2>
	<iframe src="regex.php" width="100%" height="350px" style="border: 1px solid #ccc" seamless><p><em>No support for iFrames?</em></p></iframe>

	<?php $article = 1739; include DOCROOT.'footer.php'; ?>

</body>
</html>