Revision df51b2f313e3191f4d99b17f289863d8df68ce7b authored by Jonathan Kew on 21 June 2012, 06:45:55 UTC, committed by Jonathan Kew on 21 June 2012, 06:45:55 UTC
1 parent 84df408
Raw File
file_bug669671.sjs
function handleRequest(request, response)
{
  var count = parseInt(getState('count'));
  if (!count)
    count = 0;
  setState('count', count + 1 + '');

  response.setHeader('Content-Type', 'text/html', false);
  response.setHeader('Cache-Control', 'max-age=0');
  response.write('<html><body onload="opener.onChildLoad()" ' +
                 'onunload="parseInt(\'0\')">' +
                 count + '</body></html>');
}
back to top