How does google browser etc do this?

Asked

Viewed 159 times

5

inserir a descrição da imagem aqui

How can I create a url scheme similar to Chrome and other browsers etc? I want to make the . html file open in this url scheme, just like file://. Instead I want something like new://index.html. I want to open local files using this url scheme.

  • I don’t know if this is your case, but you can search for "Navigator.registerProtocolHandler" available from Chrome 13

  • Look at that reply on Soen talks about creating a protocol, like ftp://...etc.

  • 2

    I already say that each OS has a way to associate an Handler to a URI SCHEME. For example, in Windows, it is a simple registry entry https://msdn.microsoft.com/en-us/library/aa767914(v=vs.85). aspx

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.