Saturday, 29 April 2017

How to add in document scripts to Electron

I have always wanted to create my very own desktop application. And I think Electron will work best for me. I have noticed that when I render my html file into a browser window it does not load my Javascript file. Is there a correct way of doing this?

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Test App</title>
</head>
<body>
<script src="jquery.min.js"></script>
<script>
$(document).ready(function() {
alert();
});
</script>
</body>
</html>



via Marjo Forcado

No comments:

Post a Comment