JavaScript, often abbreviated as JS, is a programming language that conforms to the ECMAScript specification. JavaScript is a high-level, often just-in-time compiled, and multi-paradigm. It has curly-bracket syntax, dynamic typing, prototype-based object-orientation, and first-class functions.
Whenever a browser sends a request for a page, it also sends a number of other headers to the script, containing information such as the browser type. It also includes information such as the visitors IP address.
The following JavaScript code will display the visitor’s IP:
<!–#echo var=”REMOTE_ADDR”–>