معرفی کد اچ تی ام ال HTML همراه با دستور جاوا اسکریپت javascript و پاپ آپ pop-up هنگام باز شدن صفحه جدید همراه با دکمه بستن.
ابتدا کد جاوا اسکریپت javascript زیر را در قالب سایت قرار دهید.<script type="text/javascript">
function open_on_entrance(url,name)
{
window.open('http://www.google.com','google', ' menubar,resizable,dependent,status,width=300,height=200,left=10,top=10')
}
</script>
<body onload="open_on_entrance()"></body>
سپس کد اچ تی ام ال زیر را همراه با متن مورد نظر قرار دهید.<html>
<head>
<meta charset="utf-8">
<title>jQuery UI Dialog - Default functionality</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<script>
$(function() {
$( "#dialog" ).dialog();
});
</script>
</head>
<body>
<div id="dialog" title="Basic dialog">
<p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>
</div>
</body>
</html>