zjrJS Javascript Library

zjrJS.Debug.log() - zjrJS Javascript Library

This information lives on a webpage hosted at the following web address: 'https://omegajunior.globat.com/code/zjrjs/'.

How to use zjrJS.Debug.log().

Declaration
zjrJS.Debug.log(String)

Available since
November 27, 2011 (zjrJS.20111127t1020.js).

Goal
The passed String is logged to the browser's debug console if it has one. Otherwise zjrJS.Debug.alert(String) is called, passing the received String.

Typical usage
Pepper your coding with console messages to keep track of what is going on inside your code. It usually only is visible when a visitor starts their browser's debugger, and otherwise stays hidden.

Member Type
Method (no return value).

Parameters
String - whatever piece of text you wish to have alerted.

Dependencies
zjrJS.Debug.alert

Example
<script type="text/javascript" src="zjrJS.version.js" id="zjrJS"></script>
<script type="text/javascript">/* <![CDATA[ */
var D=zjrJS.Doc;
D.aE(window,"load",function(){
zjrJS.Debug.log("Hello, world!");
});
D=null;
/* ]]> */</script>

Download:

Download zjrJS’ latest stable build (20141202t2322) minified (7.1KB).

Download zjrJS’ latest stable build (20141202t2322) (11.9KB).

Clicky Analytics