jaymc Posted October 16, 2006 Share Posted October 16, 2006 I have this code shown below[b]<input type='file' OnClick="alert('Hello');">[/b]Obviously when clicking they should be hit with an alert, apparently it doesnt work with FILE boxesIs their1: Anyway to set an alert when clicking browse2: Find out whether any file location has been added to the file box after browsingThanks Quote Link to comment Share on other sites More sharing options...
fenway Posted October 17, 2006 Share Posted October 17, 2006 Why use an alert box? Browse will trigger an appropriate dialog automatically. And you can probably use an onchage event. Quote Link to comment Share on other sites More sharing options...
jaymc Posted October 17, 2006 Author Share Posted October 17, 2006 Because I want to display an alert box (warning) when clicking browseI also need to check to see if a file dir has been inputted to the file field Quote Link to comment Share on other sites More sharing options...
fenway Posted October 17, 2006 Share Posted October 17, 2006 Maybe you could try an onmouseup handler; and you'd have to do any checks onblur, but that be complicated. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.