This assumes the put up to 'url' returns an ajax in the form of results: false, mistake:'my Error to display' Here is A fast fiddle jsfiddle.Internet/y2xezyoj this fires the load event ass shortly since the pdf file is loaded into the iframe. Cuando llamo a la funcion EscribirLog (manda desde https://kokainstein21975.mybuzzblog.com/19682425/5-essential-elements-for-kokainstein