Salut,
<textarea id="texte"></textarea>
<input type="button" onclick="cform=document.getElementById('texte');
cform.value = cform.value.substr(0,cform.selectionStart) +
'[URL ' +prompt('URL : ','http://')+']'+prompt('label', 'label')+'[/URL]'+
cform.value.substr(cform.selectionStart,(cform.selectionEnd-cform.selectionStart)) + fin + cform.value.substr(cform.selectionEnd);
" value="ajouter lien" />
In a dream, I saw me, drop dead... U was there, U cried... It was just a dream, if I die, U won't cry, maybe, U'll be happy
Mon site (articles sur la programmation et programmes)