View Full Version : error when calling an array element

07-03-2002, 11:15 AM
hi I have the code below, in a linking js page from my html page.. but when I link to it from my html page it comes up woth an error :(

var messages = new Array();
get_link[0] = "home.htm";
get_link[1] = "news.htm";
get_link[2] = "enquiries.htm";
get_link[3] = "http://www.streetmap.co.uk/streetmap.dll?G2M?X=558128&Y=104766&A=Y&Z=1";
get_link[4] = "mailto:stringtownsupplies@btopenworld.com?subject="enquiry from the web site";
function urgent() {
window.alert('for urgent deliveries we charge, next day: 24 hours 6.50, 2-3 days: 48 hours 28.50, saturday: 23.50');

my link to it is


whats happening team, will my link work to open the page I want ?

07-03-2002, 12:56 PM
When you define array elements that are called "get_link", you shouldn't call them "link" when you refer to them...