OK/Cancel prompt with carriage returns

This is a sample OK/Cancel prompt for the user to proceed, which includes carriage returns ( \n ).
JavaScript


//prompt user with Ok/Cancel
messagetext = 'Please note that the Tax Year is not the same as the Payment Date Year for this payment entry.' + ' \n' +  ' \n' + 'In most cases the Tax Year should be the same as the year the payment was made.  If this payment relates to a Tax Payment you can select the Country and Tax Payment Year that the payment relates to.' + ' \n' +  ' \n' + 'Please select "Cancel" to change the Tax Year, or "OK" to proceed and save the payment.'

result=window.confirm(messagetext);
if (result==true) {
	//Go ahead and resume formula functions
	document.getElementById("SaveAndAddNew").click();
}

Posted by fbrefere001 on Friday February 10, 2006