Well the excel sheet already is in a new window, I am more concerned about the links embedded into the excel spreadsheet not being able to go back to the spreadsheet. I have no idea why the javascript is not working after coming out of the excel file. The Files it links to are normal ASP files. Why would that script not be working on these pages, thats what is stumping me.
Main Topics
Browse All Topics





by: cwolvesPosted on 2008-05-04 at 22:24:55ID: 21498253
Okay, first off that's one of the most annoying things you can possibly do and you should be shot. :-) Okay, not really but I think you probably know what I'm talking about...it drives me crazy when people try to disable my back button.
As for disabling it, if you're setting the content type to application/excel or whatever the exact excel content type is, it's going to be handled by MS Word, NOT by the browser. Yes, it may be embedded in the browser, but it's still word (or openoffice or whatever else) handling the content.
In otherwords you can't use javascript as it's not an HTML page.
The best you could do would be to open the excel sheet in a new window. Since it's in a new window it won't have a history and thus no back button.
Oh, you can also ...no, I won't tell you that because it's just evil.