JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old March 25th, 2007, 09:05 AM
cty cty is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2006
Posts: 18 cty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 9 m 16 sec
Reputation Power: 0
Onblur problem,please help

Code:
<html>

<head>




<script language=Javascript type="text/javascript">

function checkname(x)
{

if(x==""){
window.alert("you must enter a username")


reg.username.select()
reg.username.focus()


}

}


function checkpass(y)
{

if(y==""){
window.alert("you must enter a password")
reg.password.select()
reg.password.focus()

}


}
</script>

</head>
<body>


<form  name=reg method="POST" action="login.php">
	<p>&nbsp;</p>
	<p><b><font size="5">
	 You must login first before you order any book</font></b></p>
	<p>
	Username
	<input type="text" name="username" size="20" 
		onblur="checkname(document.reg.username.value);"></p>
	
	<p>Password
	<input type="text" name="password" size="20" 
		onblur="checkpass(document.reg.password.value);"></p>
	
</form>

</body>

</html>



THE WARNING MESSAGE POP UP NON STOP,HOW TO EDIT IT?

Reply With Quote
  #2  
Old March 25th, 2007, 09:36 AM
costas costas is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Posts: 407 costas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 Days 3 h 18 m 9 sec
Reputation Power: 3
well it works fine for me... i'm using firefox and WinXP...
__________________
www.tosc.gr - Greek site with free programs to make your life easier
www.friendgr.gr - new torrent tracker - supports english...
Costas

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Onblur problem,please help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway