我有Bokun的下一个iframe:
<div id="bokun-w35050_53624920_43ac_48d9_9b42_b6b315d250f4">Loading...</div><script type="text/javascript">
var w35050_53624920_43ac_48d9_9b42_b6b315d250f4;
(function(d, t) {
var host = 'widgets.bokun.io';
var frameUrl = 'https://' + host + '/widgets/35050?bookingChannelUUID=7279350f-e510-44e6-b5fc-d7515f01dfff&activityId=68154&lang=en&ccy=USD&hash=w35050_53624920_43ac_48d9_9b42_b6b315d250f4';
var s = d.createElement(t), options = {'host': host, 'frameUrl': frameUrl, 'widgetHash':'w35050_53624920_43ac_48d9_9b42_b6b315d250f4', 'autoResize':true,'height':'','width':'100%', 'minHeight': 0,'async':true, 'ssl':true, 'affiliateTrackingCode': '', 'transientSession': true, 'cookieLifetime': 43200 };
s.src = 'https://' + host + '/assets/javascripts/widgets/embedder.js';
s.onload = s.onreadystatechange = function() {
var rs = this.readyState; if (rs) if (rs != 'complete') if (rs != 'loaded') return;
try {
w35050_53624920_43ac_48d9_9b42_b6b315d250f4 = new BokunWidgetEmbedder(); w35050_53624920_43ac_48d9_9b42_b6b315d250f4.initialize(options); w35050_53624920_43ac_48d9_9b42_b6b315d250f4.display();
} catch (e) {}
};
var scr = d.getElementsByTagName(t)[0], par = scr.parentNode; par.insertBefore(s, scr);
})(document, 'script');
</script>
我需要的是,当点击“图书”时以新的方式打开结帐