Welcome to WebmasterWorld Guest from 54.163.68.15

Forum Moderators: open

Message Too Old, No Replies

How to include javascript into html file

   
9:33 am on Aug 7, 2005 (gmt 0)

5+ Year Member



Hi

I have three java scripts like this

-----------------------------------------------
<script type="text/javascript">
...........script.........
</script>

<script type="text/javascript">
...........script.........
</script>

<script type="text/javascript">
...........script.........
</script>
----------------------------------------------

I need to combine the three java scripts above to one file like abc.js and How can I include abc.js it into html file?

9:43 am on Aug 7, 2005 (gmt 0)

5+ Year Member



Hey Naty, it's actually a really simple procedure.

Just put this code in your header:

<script type="text/JavaScript" src="abc.js"></script>