Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot include multiple JS files

Status
Not open for further replies.

12938172

Programmer
Jan 23, 2008
4
Hi Guys,

I am trying to include 2 javascript files into one of my webpages. The problem is only 1 of the 2 scripts will work. See code below:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "<head>
<link rel="stylesheet" type="text/css" href="main.css" />
<script language="JavaScript" src="validation.js"></script>
<script language="JavaScript" src="js.js"></script>
</head>
<body>
</body>
</head>
 
I think the reason why I cannot include the JS files is because both have onload functions.

window.onload = function()
{
myfunct();
}
 
That would do it.

Never knock on Death's door: ring the bell and run away! Death really hates that!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top