Click to See Complete Forum and Search --> : linking to external javascript


dcjones
08-21-2005, 09:01 PM
Hi all.

I am trying to link a html page to an external javascript.

In my html page i have:

<script language="JavaScript" type="text/JavaScript">
<!--
src="http://www.mydomain.co.uk/maps.js"
//-->
</script>

I have a script called "maps.js" which has the folloing code:

function london_area_map()
{
window.open("london_area_map.htm","london_area_map","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,heig ht=375,top=250,left=300");
}

In the html page I have text links which should call the function in the external script:

<td class="bodytextsmall"><a href="" onClick="london_area_map(); return false;">London</a></td>

It does not work. Can anyone advise me as to where I am going wrong.

Many thanks in advance, keep safe and well.

Dereck

JPnyc
08-21-2005, 09:05 PM
<script type="text/JavaScript" src="http://www.mydomain.co.uk/maps.js"></script>

dcjones
08-21-2005, 09:16 PM
Hi,

Thank or the fast reply. It's working.

Keep safe and well

Dereck