This can be done by Using JavaScript extensions (runs from JavaScript Editor), example for opening of a file –