I have a web page which links to an Excel 2007 worksheet. It is a .xls file and not .xlsx file. When I click on the link I get the usual dialog box
.xls
.xlsx
I don't believe you can hide it from the user. Those kinds of warnings are external to your browser.