<SCRIPT language="javascript">
function box(){

    if (document.getElementById('adminUserName').value == " "){
        alert("UserName is Empty");

    }else{
        alert("UserName Successfully Save");
    }
}
</script>
=====================================
<td>User Name:</td>
        <td colspan="2">
            <div id="adminUserName">
                    <html:text property="adminUserName"/>
            </div>       
        </td>

Are you giving the code or asking for help ?

im asking for help because my code doesn't work anyone here willing to help me..??

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.