当前位置: 代码迷 >> JavaScript >> 怎么用javascript实现选择编码
  详细解决方案

怎么用javascript实现选择编码

热度:394   发布时间:2012-02-05 12:07:15.0
如何用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 ' ">
  相关解决方案