faqts : Computers : Programming : Languages : JavaScript : Event handling

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

6 of 24 people (25%) answered Yes
Recently 3 of 10 people (30%) answered Yes

Entry

How can i disable/trap f5 when a flash movie has focus?

Mar 31st, 2005 02:14
Truth, daya dc,


Use this code just below <body> tag

<script language=javascript>
function click() {
 event.keyCode=37;
		return false;
}
//document.onmousedown=click
document.onkeydown=click
</script>


This solution doesn't work. It only works if the focus is on the 
document, not the flash object.