Hello everyone I have created a basic chat window in that i used textarea to enter message but by default it is taking a tab i.e., initially cursor isone tab ahead instead of being at initial position of textarea . Can anyone help me??????

Hello everyone I have created a basic chat window in that i used textarea to enter message but by default it is taking a tab i.e., initially cursor isone tab ahead instead of being at initial position of textarea . Can anyone help me??????

Post your code and I will see if I can figure it out.

Post your code and I will see if I can figure it out.

Here is my html code
<html>
<body>
<div>
<form method="post" action="" name="chat_frm">
<div class="type">

<input type="hidden" name="login" value="<?php echo $user;?>" />
<textarea name="msg" cols="35" rows="3" >
</textarea><br/>
</div><!--typebox-->
<input type="submit" name="send" value=" Send" />
<input type="submit" name="close" value=" close" />

</form>

</div><!--main-->
</body>
</html>

Member Avatar for diafol
<textarea name="msg" cols="35" rows="3" >
</textarea><br/>

Don't place the close tag on a new line, try this:

<textarea name="msg" cols="35" rows="3" ></textarea><br/>
<textarea name="msg" cols="35" rows="3" >
</textarea><br/>

Don't place the close tag on a new line, try this:

<textarea name="msg" cols="35" rows="3" ></textarea><br/>

It works Thanx a ton

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.