[Wylug-help] silly javascipt problem

Mike Goodman mike.goodman at zen.co.uk
Tue Nov 10 14:58:22 UTC 2009


Gary Stainburn wrote:
> Hi folks,
> 
> I've gone code blind.  can someone please tell me where I've gone wrong with 
> the following.  Firefox/Firebug doesn't complain but it stops at the match() 
> statement, i.e. the 'After Match' alert doesn't action.
> 
>   var MyURL=window.location;
>   alert(MyURL);
>   MyURL=MyURL.match(/ringways.co.uk(.*\.html)/);
>   alert('Aftr match');
>   alert(MyURL);
>   window.location=MyURL+response[1];

Dunno about JS, Gary, but I'm quite good at speeling ;-) and After has 
an e in it:

>  alert('Aftr match');




More information about the Wylug-help mailing list