The reason is this line:
inc\media.php(453): 'onclick="return confirm(\''.$ask.'\')" onkeypress="return confirm(\''.$ask.'\')">'.
) and is not needed in most browsers (except for Mac IE, and we can ignore it, can't we?).
And this is not the only occurrence of onkeypress ...