This, unfortunately, is not possible in the way you requested it in HTML 4 or below. Even with HTML5, which has several new INPUT TYPES, including a URL, it only validates and has some other useful features, but it won’t give you the need.
jQuery, , , Rich Text - HTML WYSIWYG . .
( ) , HTML4 , HTML4 INPUT . html . :
VALUE INPUT, "" DOM ( , , , , , , ( VALUE, " http://yahoo.com" ):
<input id="myTxtbox" type="text" value="http://yahoo.com">
INPUT VALUE = " http://yahoo.com", :
/url - , .. / . /, , , . - , ( <label>, ):
<input id="myTxtbox" type="text">
http://yahoo.com
</input>
textbox/innerText , DOM, :
javascript:
document.getElementById("myTxtbox").innerText
jQuery:
$("myTxtBox").text() - , , ( ).
: http://yahoo.com
/url ANCHOR() HREF URL ( ) , , innerHTML. , , , . . , №2. , # 1, HTML , , :
<input id="myTxtbox" type="text">
<a href="http://yahoo.com">
http://yahoo.com
</a>
</input>
, # 2, innerHTML , DOM, :
: <a href="http://yahoo.com">http://yahoo.com</a>