View Single Post
Old 03-16-2008, 09:53 PM  
mikeyddddd
Viva la vulva!
 
mikeyddddd's Avatar
 
Join Date: Mar 2003
Location: you can't please everyone, so you got to please yourself
Posts: 16,557
Put the code into a function:

function name_it_what_ya_want( ) {
GoTo = new Array();
GoTo[0]= 'http://www.some url.com';
location.href = GoTo[0];
}

Make an anchor to use the function:

<a href="javascript:name_it_what_ya_want()">now it goes to some url</a>

Last edited by mikeyddddd; 03-16-2008 at 09:54 PM..
mikeyddddd is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote