document.addEventListener( 'wpcf7mailsent', function( event ) { location = 'http://caravian.com.mx/gracias/'; }, false );