Thursday, August 6, 2009

Multiple lines of string in JavaScript. Using 'back slash'

function createWarningPage()
{


content="";

content+="\
{CENTER>\
{a> {b>{SPAN CLASS='preppy'> Device Communication Time out after "+parent.left.timeoutduration+" Seconds . {/SPAN>{/b> {/a>\
{br>\
{a> Please try again. {/a>\
{BR>\
{BR>\
{BR>\
{BR>\
{/CENTER>";

document.write(content);

}

No comments: