所以我最近在我的网站上建立了一个GoDaddy和IFramed的商店,但是当我尝试检查iframe被拒绝时,我正试图将它移到我可以点击iframe中的那个按钮的地方,它会将我重定向到它应该去的链接。
商店位于https://cryodev.net/testing/home/shop.html
当您添加项目然后尝试结帐时会发生这种情况。
我尝试检查代码,但我之前没有这样做,所以我不知道。
我试过这段代码:
<head>
<title>Shop</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
</head>
<body>
<iframe src="https://cryohosting.godaddysites.com/" style="position:fixed; top:0px; left:0px; bottom:0px; right:0px; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;">
<script type=text/javascript >
$('#frame').contents().find( "body" ).html('<button data-aid="CART_CHECKOUT" class="x-el x-el-button x-ntrl-def x-btn x-b-0 x-b-rad-md x-c-act-bg x-c-act-bg-hover x-d-inline-block x-va-middle x-m-b-0-bpxs x-p-t-xs-bpxs x-p-b-xs-bpxs x-p-r-md-bpxs x-p-l-md-bpxs x-f-alt-fam x-f-sz-md x-c-act-text x-c-act-text-hover x-ta-center-bpxs x-ws-normal x-cur-pointer x-d-aid">Checkout</button>')
<meta http-equiv=“refresh" content="0"; url=https://example.com/" />
$('#frame').load(function() {
$('#frame').replaceWith('<p>hi</p>');
});
Your browser doesn't support iframes, go to https://cryohosting.godaddysites.com/ for store.
</script>
</iframe>
</body>
但它不起作用......:/
我希望“结帐”按钮重定向到https://5053d4df-8dcd-4a91-b205-405c1ee42ddd.mysimplestore.com/checkout/address