Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input[type=file]{
- width:90px;
- color:transparent;
- }
- window.pressed = function(){
- var a = document.getElementById('aa');
- if(a.value == "")
- {
- fileLabel.innerHTML = "Choose file";
- }
- else
- {
- var theSplit = a.value.split('\');
- fileLabel.innerHTML = theSplit[theSplit.length-1];
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement