inDesignMode()



This function determines if design mode is active.

Example:

var design = inDesignMode(); if (design) { // perform design mode action } else { // perform runtime mode action }