From ThorstensHome
Revision as of 12:20, 17 February 2015 by ThorstenStaerk (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

To quickly debug javascript code there is the alert function. However this requires you to click for every information you get. A quicker way is to write your information directly onto the site. For example if your window gets resized, output its new size like this:

<script language=javascript>
window.onresize = function(event) 
<div id="debug">
  Resize your Window to start.

Resize your Window to start.