03-16-2008, 09:53 PM
|
|
Viva la vulva!
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>
|
|
|