1. #1
    Ext User
    Join Date
    Jul 2009
    Posts
    11
    Vote Rating
    0
    albaba1903 is on a distinguished road

      0  

    Smile change uploadfile button

    change uploadfile button


    <input name="screenshots1" type="file" value="..." >



    <input type="file" name="screenshots3" style="display: none">
    <input type="text" name="txtFakeText" readonly="true">
    <input type="button" onclick="HandleFileButtonClick();" value="Browse">

    function HandleFileButtonClick() {

    document.adminForm.screenshots3.click();
    document.adminForm.txtFakeText.value = document.adminForm.screenshots3.value;

    }
    Last edited by albaba1903; 20 Jan 2010 at 8:18 PM. Reason: I just want to change the button of the uploadfile; The code of following is do use under IE, but don't use under firefox; Ca
    albaba1903