I want to create one application and it should work on both desktop (without internet connection) and in the web. The applications should be the same (I mean UI and code) and wo
My question was 1 year ago, but now it seems that I found something that is really interesting and seems to be good condidate to use on multiple devices. Its Apache Cordova
It is open-source and has a lot of supported platforms, both mobile and desktop.
[UPDATE] Jan, 2016:
Things have changed in last 4 years and now the good choose looks like is atom electron. This is exactly what I wanted 4 years ago.