What could be the best way the detecting the custom protocol (like foo://) in Safari and chrome browser. I was looking at the following options:
Browser extension which can check the existence of custom protocol invoker software. (Not sure if it is possible and how to do it)
Browser plugin or java applets( since NPAPI is now going to deprecated so probably this will not be good idea).
Flash Action script with java script(since Flash is sand boxed then again it seems not good idea to use it)
Can any one suggest any other approach or suggestion? can I go by approach #1.