rvetrano Posted July 29, 2018 Share Posted July 29, 2018 Hi, As You can tell I'm fairly new to HTML. Have this code and when I pick the button it prompts me if I want to run this code and I have to chose yes in order for it to run. Would like it run when I select button. Thanks. Bob v <body> <div id="Banner"> <div> <!--<a href="Stair-E-2.pdf" target="_blank"><img src= "Stair plan.jpg" width= "150" height="100" ></a> --> <button onclick="window.open('file:///C:/Windows/notepad.exe')"> Launch notepad </button> <h3 style="position: absolute; z-index: 1; margin-left: 250px; top: 800px;">CLICK ON IMAGE TO ENLARGE<br>MORE AVAILABLE UPON REQUEST</h3> <p><a href="index.html"><input type="submit" value="RETURN" style="position: absolute; z-index: 1; margin-left: 650px; top: 800px;"></a></p> </div> </body> Link to comment Share on other sites More sharing options...
davej Posted July 29, 2018 Share Posted July 29, 2018 Sorry, Javascript can't open Notepad or run any other executable. https://www.w3schools.com/jsref/met_win_open.asp Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now