i have designed a page With Username and Password as its labels with a Submit button,i have written the following code in javascript
<html>
<head>
<title>Title of page</title>
<script type="text/javascript">
function disp_alert()
{
var x = document.getElementById('<%txtUsername.ClientID%>').value;
var y = document.getElementById('<%txtPassword.ClientID%>').value;
if(x = 'naga' && y = 'naga')
alert('welcome');
else
alert('enter valid id and password');
}
</script>
</head>
<body>
</body>
</html>
but i am not getting the pop window .Plz help me.