function OpenWindowWithPost(url, windowoption, name, params) { var form = document.createElement("form"); form.setAttribute("method", "post"); form.setAttribute("action", url); form.setAttribute("target", name); for (var i in params) { if (params.hasOwnProperty(i)) { var input = document.createElement('input'); input.type = 'hidden'; input.name = i; input.value = params[i]; form.appendChild(input); } } document.body.appendChild(form); //note I am using a post.htm page since I did not want to make double request to the page var hDipositWin = window.open(url, name, windowoption); form.submit(); document.body.removeChild(form);
$('#myIframeContiner').append("<iframe src='" + url + "' width='80%'></iframe>");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)