function kk()
    {
        path=document.getElementById("fileField").value;
        arr=path.split('\\');
          alert(arr[arr.length-1]);  
    }    window.onload=init;
    function init()
    {
        var oInput=document.getElementById("fileField");
        oInput.attachEvent("onmouseover",kk);
        alert(oInput.getAttribute("onchange"))
    }    
    为HTML元素添加事件:应该使用 attachEvent 方法