HighDots Forums  

Re: Am using a Javascript for my small site.....

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: Am using a Javascript for my small site..... in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Hal Rosser
 
Posts: n/a

Default Re: Am using a Javascript for my small site..... - 03-22-2008 , 01:26 PM






Quote:
center><form name=login
table border=1 cellpadding=3

tr><td colspan=2 align=center><font size="+2"><b>Members-Only Area!</
b></font></td></tr
tr><td>Username:</td><td><select name=memlist
option value='x'
option value='John Smith|42691|NGLOQEMM'>John Smith
option value='Peter Jones|52219|GNLVAPMV'>Peter Jones
option value='Sue Brown|18215|PXAPGWKY'>Sue Brown
option value='Sally West|64403|NUIRTURT'>Sally West
option value='John|16419|VHYZAJUV'>John
/select></td></tr
tr><td>Password:</td><td><input type=password size=10 maxlength=8
name=pass></td></tr
tr><td colspan=2 align=center><input type="button"name= submit
value="Submit" onclick="check(this.form);" ></td
/tr
/table
/form
if u want the entire file....here it goes.........
I did not copy/[paste/ and try your code with this modification.but..
this modification may be what you're after, since you want the keyboard's
"enter" button to cause the form to submit.
Change your last "input" element to type="submit" instead of type="button"





Reply With Quote
  #2  
Old   
kev
 
Posts: n/a

Default Re: Am using a Javascript for my small site..... - 03-22-2008 , 10:30 PM






On Mar 22, 10:26*pm, "Hal Rosser" <hmros... (AT) bellsouth (DOT) net> wrote:
Quote:
center><form name=login
table border=1 cellpadding=3

tr><td colspan=2 align=center><font size="+2"><b>Members-Only Area!</
b></font></td></tr
tr><td>Username:</td><td><select name=memlist
option value='x'
option value='John Smith|42691|NGLOQEMM'>John Smith
option value='Peter Jones|52219|GNLVAPMV'>Peter Jones
option value='Sue Brown|18215|PXAPGWKY'>Sue Brown
option value='Sally West|64403|NUIRTURT'>Sally West
option value='John|16419|VHYZAJUV'>John
/select></td></tr
tr><td>Password:</td><td><input type=password size=10 maxlength=8
name=pass></td></tr
tr><td colspan=2 align=center><input type="button"name= submit
value="Submit" onclick="check(this.form);" ></td
/tr
/table
/form
if u want the entire file....here it goes.........

I did not copy/[paste/ and try your code with this modification.but..
this modification may be what you're after, since you want the keyboard's
"enter" button to cause the form to submit.
Change your last "input" element *to type="submit" instead of type="button"- Hide quoted text -

- Show quoted text -
Nope,
its not working
the only option i have is select user name, type password and then
press TAB, then enter.....

But by default, the page not taking it if i press enter button without
TAB.....

Kev


Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.