您现在的位置是:首页 > 电脑技术查询 > web开发

怎么用javascript实现选择编码

编辑:chaxungu时间:2022-10-02 23:19:03分类:web开发

如何用javascript实现选择编码
简单的说,就是想用javascript来实现在网页上点右键改变网页编码的功能。
望高手不吝赐教!

------解决方案--------------------
<input name= "button1 " type= "button " value= "UTF-8 " onclick= "document.charset= 'UTF-8 ' ">
<input name= "button1 " type= "button " value= "GB2312 " onclick= "document.charset= 'GB2312 ' ">