codice:function getParameter (name, ins) { var query = unescape( window.location.search.substring(1) ); if (name == null) return query; var start = (ins ? query.toLowerCase().indexOf(name.toLowerCase()) : query.indexOf(name)); if (start > -1) { var end = query.indexOf("&", start); if (end < 0) end = query.length; var res = query.substring (start+name.length, end); if (res.charAt(0) == "=") res = res.substring (1); return res; } else return null; } if ( getParameter("txtFlag") == 0 ) alert ("txtFlag è ZERO... nella pagina test.asp");