Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
![]() |
•
•
Join Date: Nov 2007
Posts: 19
Reputation:
Rep Power: 2
Solved Threads: 0
Hi All,
I want to change the f5 property to html tag(i.e., <input type='file'>) for I.E.7.0 version and above. but its not working.
Here the code is working in only in <input type='text'> but not working to <input type='file'>
<html>
<head>
<script>
document.onkeydown = function(){
if(window.event && window.event.keyCode == 116)
{
window.event.returnValue = false;
window.event.cancelBubble = true;
window.event.keyCode = 505;
}
if(window.event && window.event.keyCode == 505)
{ alert('F5 key was pressed');
return false;
}
}
</script>
</head>
<body >
<table>
<tr>
<td><input type='file' id='file1' name='file1' ></td>
</tr>
<tr>
<td><input type='text' id='text1' name='text1' ></td>
</tr>
</table>
</body>
</html>
Thanks,
swapna.
I want to change the f5 property to html tag(i.e., <input type='file'>) for I.E.7.0 version and above. but its not working.
Here the code is working in only in <input type='text'> but not working to <input type='file'>
<html>
<head>
<script>
document.onkeydown = function(){
if(window.event && window.event.keyCode == 116)
{
window.event.returnValue = false;
window.event.cancelBubble = true;
window.event.keyCode = 505;
}
if(window.event && window.event.keyCode == 505)
{ alert('F5 key was pressed');
return false;
}
}
</script>
</head>
<body >
<table>
<tr>
<td><input type='file' id='file1' name='file1' ></td>
</tr>
<tr>
<td><input type='text' id='text1' name='text1' ></td>
</tr>
</table>
</body>
</html>
Thanks,
swapna.
I would say this is a security violation. If it isn't, it should be.
You have absolutely NO RIGHT to control someone else's computer, or the software running on that computer.
And I absolutely HATE webmasters who do things that destroy my browsing history.
You have absolutely NO RIGHT to control someone else's computer, or the software running on that computer.
And I absolutely HATE webmasters who do things that destroy my browsing history.
Last edited by MidiMagic : Jan 12th, 2008 at 2:17 am.
Daylight-saving time uses more gasoline
![]() |
Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum
- How can show/view Infopath dynamic files(xml) without infopath in a computer (XML, XSLT and XPATH)
- memory management in wndows 2000 (Windows NT / 2000 / XP / 2003)
- This is a wierd one! (Windows NT / 2000 / XP / 2003)
- "Forbidden / You don't have permission to access / on this server." error (Linux Servers and Apache)
- New to php and need some help with a guestbook (PHP)
- Having prolems with a guestbook (HTML and CSS)
- Source Code that don't work? (Java)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: server side scripting with Javascript
- Next Thread: How can we disable browser F5 Key or menu "Refresh" option?
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)






Linear Mode