message.html 875 Bytes

<!doctype html>
<HTML style="width : 350; height: 300">
<HEAD>
<TITLE></TITLE>
<SCRIPT LANGUAGE=javascript>
<!--
function escapeKeyPress(e) {
	e = e || window.event;
	if(e.keyCode == 27){ // code for escape
		window.close();
	}
};

function windowOnLoad() {
	// #5875: string.prototype.split strips the tail when a limit is supplied,
	// so use a regexp instead.
	var args = window.dialogArguments.match(/^(.*?);(.*?);([\s\S]*)$/);
	// args[0] is the whole string.
	if (args && args.length == 4){
		document.title= args[2];
		if ( args[1] == "true") {
			messageID.innerHTML= args[3];
		}
		else if ( args[1] == "false") {
			textID.innerText= args[3];
		}
	}
} 
//-->
</SCRIPT>
</HEAD>
<BODY tabindex='0' id='main_body' LANGUAGE=javascript onload="return windowOnLoad()" onkeypress="return escapeKeyPress()" >
<div id=messageID></div>
<pre id=textID></pre>
</body>
</html>