Jump to content

"open With" Within Html


chrispey
 Share

Recommended Posts

Hi there,I'm looking to link to an html file which is more than easy enough but upon clicking on it I'd like the file to be opened in Notepad (or Notepad++ preferably). Is there a way in code to bypass the default program for a filetype?Thanks!

Edited by chrispey
Link to comment
Share on other sites

You can specify the content-type application/octet-stream, that will force a download, but it is then up to the user as to what they open it in.

Link to comment
Share on other sites

Hi there,I'm looking to link to an html file which is more than easy enough but upon clicking on it I'd like the file to be opened in Notepad (or Notepad++ preferably). Is there a way in code to bypass the default program for a filetype?Thanks!
u can set up the default program to open the file , right ?
Link to comment
Share on other sites

u can set up the default program to open the file , right ?
Absolutely. The only thing is I want ".html" docs to open by default in browser. What I'm looking to do is link to a .html doc that would open in Notepad or another such program. Not sure if it's even possible
Link to comment
Share on other sites

You can have a folder on your server that has the Content-Disposition header set, which would force the file to download. However, once on the client's computer they have to choose what to do with the file.EDIT: Actually, it's basically the same thing as trying Synook's suggestion.

Edited by Ingolme
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...