I've only just started playing around with Javascript, so don't mind what I say if I misuse a term or ask to do something that's impossible. I'm having a problem opening a program through Javascript. I want the script to start a game that people can play. I'm using the code "document.location="Game Folder/demo.exe";". When I run the document, the popup window appears asking if I want to download or run the file. When I click to run it, the program opens, but then immediately crashes. This application I'm trying to execute is in a folder with other files that it presumably needs, so I'm thinking that it needs to be somehow linked to everything else or have the entire folder loaded. Or, maybe I'm just using the wrong command...
moonlighter724
0
Newbie Poster
Recommended Answers
Jump to PostI'm afraid you can't do that. That is why many people use flash for embedded games and applications. What you need to do is re-write that application/game for a web platform. Some notable web platforms are:
Flash
Java
SilverlightIf you are not the author of this game, …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.