function onload(){
	divDiscussion 	= document.getElementById('pubarea');
	fieldset 		= document.getElementsByTagName('fieldset')[0];
	textarea 		= document.getElementById('contentpub_input');
	form 			= document.getElementById('formpub');
	send(readResponse);
}
/**
 * Attached to the body
 * <body onload="onload()">
 * ...
 * </body>
 * Gets some DOM elements and send an asynchronous request to fetch data
 */
Attached to the body


Gets some DOM elements and send an asynchronous request to fetch data
Attached to the body Gets some DOM elements and send an asynchronous request to fetch data
function onload(){
	divDiscussion 	= document.getElementById('pubarea');
	fieldset 		= document.getElementsByTagName('fieldset')[0];
	textarea 		= document.getElementById('contentpub_input');
	form 			= document.getElementById('formpub');
	send(readResponse);
}
function onload ( ) { divDiscussion = document . getElementById ( 'pubarea' ) ; fieldset = document . getElementsByTagName ( 'fieldset' ) [ 0 ] ; textarea = document . getElementById ( 'contentpub_input' ) ; form = document . getElementById ( 'formpub' ) ; send ( readResponse ) ; }
Attached to the body
 <body onload="onload()">
 ...
 </body>
 Gets some DOM elements and send an asynchronous request to fetch data
Attached to the body <body onload = " onload () " > ... < / body > Gets some DOM elements and send an asynchronous request to fetch data