'); idoc.close(); //カゴだけMakeshop API var preview = document.getElementById('ifcart'); var idoc = preview.contentDocument; idoc.open(); idoc.write('
'); idoc.write(''); idoc.close(); return false; }); document.getElementById('ifres').onload = function(){ console.log(document.getElementById('ifres').contentDocument.body); console.log(document.getElementById('ifres').contentDocument.URL); if (document.getElementById('ifres').contentDocument.URL === "http://shop.olioveil.jp/shop/basket.html") { removeIframe(); $('button[type="submit"]').prop('disabled', false); //カートページに一旦飛ばす location.href="http://" + baseDomein + "/shop/basket.html"; } } function removeIframe() { $('#ifdel').remove(); $(insertPlace).prepend($('