/    Sign up×
Community /Pin to ProfileBookmark

linking to external javascript

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,height=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

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@JPnycAug 22.2005 — <script type="text/JavaScript" src="http://www.mydomain.co.uk/maps.js"></script>
Copy linkTweet thisAlerts:
@dcjonesauthorAug 22.2005 — Hi,

Thank or the fast reply. It's working.

Keep safe and well

Dereck
×

Success!

Help @dcjones spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.24,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...