diff --git a/jquery.iframe-transport.js b/jquery.iframe-transport.js index e8ef077..289c5cd 100644 --- a/jquery.iframe-transport.js +++ b/jquery.iframe-transport.js @@ -122,7 +122,7 @@ }); form.remove(); iframe.one("load", function() { iframe.remove(); }); - iframe.attr("src", "javascript:false;"); + iframe.attr("src", "about:blank"); } // Remove "iframe" from the data types list so that further processing is @@ -190,7 +190,7 @@ // The `send` function is called by jQuery when the request should be // sent. send: function(headers, completeCallback) { - iframe = $(""); // The first load event gets fired after the iframe has been injected @@ -235,7 +235,7 @@ // aborted. abort: function() { if (iframe !== null) { - iframe.unbind("load").attr("src", "javascript:false;"); + iframe.unbind("load").attr("src", "about:blank"); cleanUp(); } }