var url = 'generador/CSV?var1=' + variable1; url += "&var2=" + variable2; frames['nombre'].location = url;