I have this function that I call from a select.
function CambiarEstadoPedido(que,id,cod,estado) { //tareas del seleccionador
if(que=="cambiar_estado") { InsertarModal('Pedidos','Pedi_CEstado','ConsPedido',id,estado,'450','410'); }
if(que =="Albaran") { window.open('http://google.es','Continue_to_Application','width=200,height=400');
return false; }
if(que =="Eliminar") { alert('guay es eliminar'); }
}
The idea is to open a new browser window with a url but for some reason that I do not understand, the window does not work. How can I be wrong?
If I put an alert inside "that=" Albaran "" if it works, with what I understand that the code goes well there.
Thank you very much everyone for your help:)