xxxxxxxxxx
<html>
<head>
<script src="https://code.jquery.com/jquery-1.9.1.js"></script>
<script type="text/javascript">
function submitFormToIFrame(){
//IE
if( document.myform ){
document.myform.setAttribute('target','frame_x');
document.myform.submit();
//FF
} else {
$.post("test.php", { name: "John", time: "2pm" } );
var form=document.getElementById('myform');
form.setAttribute('target', 'frame_x');
form.submit();
}
}
</script>
</head>
<body>
<h1>Hello Erwin!</h1>
<form id="myform" name="myform" action="result.html" target="">
<input type="button" value="Submit the Form" onClick="submitFormToIFrame();">
</form>
<span id="iframeSlot">
<iframe name="frame_x">
</iframe>
</span>
</body>
</html>
Modified http://code.jquery.com/jquery-1.9.1.js to a secure url
https://code.jquery.com/jquery-1.9.1.js