luciano2002 0 Denunciar post Postado February 6 Olá boa noite a todos, estou a dias tentando fazer este scrit escrever mais não sou nada bom com java se alguém puder me ajudar agradeço de mais. ele esta abrindo uma janela alert com os dados até ai ok, na verdade precisava que ele redirecionasse a página. Obrigado a quem me der esta luz <script language="javascript"> var LIP_LowPrecision = false; //false = ask permission to the browser, higher precision | true = don't ask permission, lower precision function LocalizaIP_done(ip_data){ if (!ip_data['error']) //this line is an exemple, you must change it by your Geolocation manipulation code alert('IP Geolocation: '+ip_data['city']+'-'+ip_data['state']+'-'+ip_data['country']+' (lat:'+ip_data['latitude']+',long:'+ip_data['longitude']+')'); if (ip_data['city'] = 'santos') { location.href="santos.htm"; } else { location.href="sao-paulo.htm"; } } </script> Compartilhar este post Link para o post Compartilhar em outros sites