我有一个链接,称为弹出视图名为class =“iframe”。 我计划在弹出窗口里面设置一个窗体,但是我的问题是我需要关闭那些弹出后点击提交然后我的原始页面,或者我弹出的背景会自己刷新它。 我的脚本:提交后关闭iframe
<script src="<?php echo base_url(); ?>template/popup/jquery.colorbox.js"></script>
<script type="text/javascript">
var $ = jQuery.noConflict();
$(document).ready(function(){
//Examples of how to assign the Colorbox event to elements
$(".iframe").colorbox({iframe:true, width:"50%", height:"78%"});
//Example of preserving a JavaScript event for inline calls.
$("#click").click(function(){
$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
return false;
});
});
</script>
<a class='iframe' href="#">POP UP </a>
亲爱的Ayrit,谢谢你,伙计,它已经帮了我一些忙,当我关上窗户时,怎么可以当前窗口是否自动刷新? – Mauliardiwinoto