html怎样可是使文本框内容不可修改

html怎样可是使文本框内容不可修改

<input type="text" readonly="readonly" onfocus="alert('我还有焦点事件!');" />

<input type="text" disabled="disabled" onfocus="alert('看看还有没有焦点事件?');"   />
原文地址:https://www.cnblogs.com/Renyi-Fan/p/7837748.html