Changing "No documents found" messages

Simple code to change the default message.
JavaScript


function changenodocs(){
	var myH2 = document.getElementsByTagName("H2").item(0);
	if (myH2.innerText=='No documents found') {
		myH2.innerText="There are no messages in this folder";
	}
}

Written by Frank Joseph Brefere III

Posted by fbrefere001 on Saturday March 8, 2008