•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 456,611 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,453 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 2503 | Replies: 0
![]() |
| |
•
•
Join Date: Nov 2007
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
function newCC()
{
var modalUrl;
var vID;
modalUrl = 'ccNew.aspx';
modalFeatures = 'dialogWidth:48; dialogHeight:29; status:0; help:0';
var vID = window.showModalDialog(modalUrl, 'UDI', modalFeatures);
if(vID != 'Close')
{
document.getElementById('txtGoID').value = vID;
document.getElementById('txtGoTgt').value = 'ccNew';
__doPostBack('lnkbtnGo','');
}
}hi,
In the above code i am usind " window.showModalDialog()" which will redirect me to the next page called ccNew.aspx. In the ccNew i have one text box and one button and tew radio buttons. I want the follwing to happen "If I enter text in the text box and Press Enter key then the button click event should fire"... but now if i press Enter nothing happens..
pls let me know how can i make the buttton click event fired if i press Enter key.
Thanks
Kiran
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- enter key (VB.NET)
- Outlook Express Won't Start (msimn.exe goes to 98% cpu usage) (Windows Software)
- How to fire a HTML button by default when enter key is pressed using javascript..? (JavaScript / DHTML / AJAX)
- Capture the Enter Key in an Edit Control (C++)
- ComboBox Events (VB.NET)
- Problem with Keyboard Event <Enter> Key (JavaScript / DHTML / AJAX)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Form has no properties in FireFox... Works in IE
- Next Thread: Javascript help


Hybrid Mode