Hi guys...
I'm having trouble with some code i made for a website.
This code works perfect in IE, but it does not work in Mozilla.
I have a list of cities, when i click one city it should do:
1º Set a cookie (which uses cookies.js i attached)
2º open website parameter in corner frame
3º redirect to the city's url. the city's url will open in the same frame where cities list is loaded
Any Firefox's JS expert here ?Code:<SCRIPT language=JavaScript type=text/JavaScript> function redirect(location_url) { return window.location.href=location_url; } function openlink(website,ctienda) { setCookie("sucursal", ctienda, 365, '/'); window.open(website,"corner"); var url2go = 'http://www.website.com/c/'+ctienda+'/'+ctienda+'.htm'; redirect(url2go); } </SCRIPT> <-- now the list of cities located in body... <a href="#" onclick="JavaScript:openlink('http://www.website.com/c/1/city1.htm','1');">CITY1 <br /></a> <a href="#" onclick="JavaScript:openlink('http://www.website.com/c/2/city2.htm','2');">CITY2 <br /></a> <a href="#" onclick="JavaScript:openlink('http://www.website.com/c/3/city3.htm','3');">CITY3 <br /></a>
Thanks a lot in advance.


Reply With Quote

Bookmarks