Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 7th, 2011, 07:21 AM
Registered User
Join Date: Aug 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default javscript for allow enter key only in multilne textboxes


I using the following code to block enter key

if (window.event.keyCode == 13)
event.cancel = true;
but it making problem on my multiline text boxes only with a single line..
How to allow Enter key default behaviour for multi-line TextBox


Last edited by sudhi; August 8th, 2011 at 01:38 AM..
Old August 13th, 2011, 09:53 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik

its ok for me, what browser r u using?
Hovik Melkomian.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Enter Key Event (Enter Key Only) Coby Excel VBA 0 February 6th, 2008 09:55 PM
use enter key to exit mastrgamr C++ Programming 1 January 18th, 2007 10:50 AM
How would you determine the "ENTER' key? mcinar HTML Code Clinic 15 March 24th, 2005 10:55 PM
Enter Key rwalker VB How-To 5 April 7th, 2004 11:04 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.