Current File : //home/obabain/anms_obaba_in/ajax.html |
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="/resources/demos/style.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<form id="modal-placeholder">
<script>
$(document).ready(function () {
$("#btn_add_product").click(function () {
//$("#dialog").dialog({modal: true, height: 590, width: 1005 });
var w = window.open("ajaxpopup.jsp", "popupWindow", "width=1000, height=900, scrollbars=yes");
var $w = $(w.document.body);
$w.html("<textarea></textarea>");
});
});
</script>
<button id="btn_add_product">Click</button>
</form>
</body>
</html>