I currently have a javascript method that renders a form in a modal window, after closing this window it refreshes the parent page. I now need it to redirect to another page instead of refreshing the parent, if that makes sense?
<script type="text/javascript">
$(document).ready(function doStuff(){
$("._form").colorbox({width:"400px", height:"600px", iframe:true,
onClosed:function(){ location.reload(true); } });
parent.$.fn.colorbox.close();
});
</script>
Any idea how I’d get it to redirect to the desired page? I assume it would be somewhere in the onClosed function