Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- function createInput(myThis)
- {
- var browser = navigator.appName;
- if(myThis)
- {
- OldValue = myThis.innerHTML;
- myThis.innerHTML = '';
- ObjInput = document.createElement('input');
- ObjInput.type = "text";
- ObjInput.value = OldValue;
- ObjInput.className = "wowInput";
- ObjInput.setAttribute('Iam','input');
- if(browser=="Microsoft Internet Explorer")
- {
- ObjInput.attachEvent('onblur',function () {
- g(ObjInput);
- });
- }
- else
- {
- ObjInput.addEventListener('blur',function () {
- g(ObjInput);
- },false);
- }
- myThis.appendChild(ObjInput);
- ObjInput.focus();
- }
- }
- </script>
Add Comment
Please, Sign In to add comment