Advertisement
BrU32

JS Unicode Encode/Decode SRC V3

Oct 1st, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. <center>
  2. <body bgcolor="lightblue">
  3. Text To Encode/Decode In The Unicode Format:<p>
  4. <b>
  5. <input ondblclick="this.value='';" style="width:220;color:darkred; background:skyblue" id="t" value="Text To Encode/Decode In Unicode Format" ></input><p>
  6. <button style="width:105" onclick="script:
  7. var rr=t.value;
  8. document.body.innerHTML=document.body.innerHTML+(encodeURIComponent('<center>'+rr+'<p>'));
  9. "><b><font color=darkgreen>Encode</button>
  10. <button style="width:105" onclick="script:
  11. var rr=t.value;
  12. document.body.innerHTML=document.body.innerHTML+(decodeURIComponent('<center>'+rr+'<p>'));
  13. "><b><font color=darkgreen>Decode</button>
  14. <button style="width:105" onclick="script:t.value=null;"
  15. font color=darkgreen>Clear</button>
  16. <p>
  17. <script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement