Guest User

Untitled

a guest
Jun 18th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. <script>
  2. function createInput(myThis)
  3. {
  4. var browser = navigator.appName;
  5.  
  6. if(myThis)
  7. {
  8. OldValue = myThis.innerHTML;
  9. myThis.innerHTML = '';
  10. ObjInput = document.createElement('input');
  11. ObjInput.type = "text";
  12. ObjInput.value = OldValue;
  13. ObjInput.className = "wowInput";
  14. ObjInput.setAttribute('Iam','input');
  15. if(browser=="Microsoft Internet Explorer")
  16. {
  17. ObjInput.attachEvent('onblur',function () {
  18. g(ObjInput);
  19. });
  20. }
  21. else
  22. {
  23. ObjInput.addEventListener('blur',function () {
  24. g(ObjInput);
  25. },false);
  26. }
  27. myThis.appendChild(ObjInput);
  28. ObjInput.focus();
  29. }
  30. }
  31. </script>
Add Comment
Please, Sign In to add comment