Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Anchor Inside Textarea

Status
Not open for further replies.

jalbao

Programmer
Nov 27, 2000
413
US
Is it possible to place a "clickable" link inside a textarea?

For example:
<textarea ...><a href=&quot;foo.htm&quot;>
tia
 
i don't think so. what are you trying to do? if the purpose of the textarea is to display data rather than collect data, you could use css with the div tag to create a &quot;textarea&quot; that can contain any html tags you wish.

for example...

Code:
<style>
.clsTextArea
{
 width: 300px;
 height: 300px;
 border-style: solid;
 border-width: 2px;
 border-color: black;
 background-color: white;
 color: black;
 overflow: scroll;
}
</style>
....
....
<body>
<div class=&quot;clsTextArea&quot;>
Here is some text including an <a href=&quot;somepage.html&quot;>active link</a>.
</div>
</body>

hope that helps,

glenn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top