forum

Home / DeveloperSection / Forums / html onload not running javascript

html onload not running javascript

Pravesh Singh248903-Sep-2013

I'm writing a game in javascript, and I had the world generator running fine, but when I created a startup function to run multiple things at once, my code doesn't run at all anymore. Can anyone see my problem?

<head>

<title>Project Rust</title>

<!-- <link href="/YOUR_PATH/favicon.ico" rel="icon" type="image/x-icon" /> -->

<script src="Scripts/startup.js"></script>

<script src="Scripts/drawmap.js"></script>

<script src="Scripts/maps.js"></script>

<script src="Scripts/mapread.js"></script>

<script src="Scripts/mainchar.js"></script>

</head>

<body bgcolor="#BFE3FF" onload="startup()">

</body>

startup.js: startup(){ alert("start"); drawmap(Screen[0]); mainchar(); }


Any help will be appreciated.


Updated on 03-Sep-2013

Can you answer this question?


Answer

1 Answers

Liked By