This assumes the put up to 'url' returns an ajax in the shape of accomplishment: Fake, error:'my Error to display' Here is a quick fiddle jsfiddle.net/y2xezyoj this fires the load function ass shortly since the pdf file is loaded in to the iframe. Cuando llamo a la funcion EscribirLog (manda https://kokainstein09753.livebloggs.com/46353497/details-fiction-and-kokainstein