javascript - Open file link with application on user click -


in website have link kml file .

when user clicks on link ,i want open kml file google earth application.

in android can using intent , providing content type.

how same desktop ? no but not solve problem.

is there way ask user consent if yes open using script? can run client side script this.

as mentioned on answer have linked to:

you can't run arbitrary program on client machine web page. or without consent. can installing browser plug-in after user consent or otherwise asking user actions.
allowing security hazard.

you can use standard web page actions. result can depend on client side user configuration.

it mention in linked answer can use web base google earth. , of course can use simple client side script ask confirmation if still to.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -