
October 11th, 2012, 12:42 PM
|
|
Registered User
|
|
Join Date: Oct 2012
Posts: 1
Time spent in forums: 16 m 15 sec
Reputation Power: 0
|
|
|
Problem with IE 9 (changing the type attribute)
Hi all
i have this java script that with Firefox works fine but with IE9 don't work; any idea how to solve the problem ? Thanks in advance.
here the javascript
var element = e.srcElement || e.target;
if(element != null){
if(element.tagName == "INPUT") {
//alert("Before: " + element.getAttribute("type"));
element.setAttribute("type", "password");
//alert("After: " + element.getAttribute("type"));
}
}
Last edited by Kravvitz : October 11th, 2012 at 02:03 PM.
Reason: added [code] tags
|