<input type="button" value="F" onClick="JavaScript:promptcode('Kursiver Text:', 'I', 'beschreibung')" />
JavaScript: ist in diesem Falle ein Label und das ist reichlich überflüssig an dieser Stelle und erzeugt in alten Browser einen Fehler.
<input type="button" value="F" onClick="promptcode('Kursiver Text:', 'I', 'beschreibung')" />
function promptcode(Nachricht,TagInhalt,AreaName){
var txt = prompt(Nachricht,"");
if(txt){
var AddTxt = "["+TagInhalt+"]"+txt+"[/"+TagInhalt+"]";
if (document.userpass) formid = document.userpass[AreaName];
if (document.mf) formid = document.mf[AreaName];
else formid=document.forms[0][AreaName];
formid.value += AddTxt;
formid.focus();
}
}
Struppi.