كود بلغة HTML: <script> function openpopup(){ // غير العنوان للذي يناسبك window.open("http://www.absba.org/") } function get_******(Name) { var search = Name + "=" var returnvalue = ""; if (document.******.length > 0) { offset = document.******.indexOf(search) if (offset != -1) { // if ****** exists offset += search.length // set index of beginning of value end = document.******.indexOf(";", offset); // set index of end of ****** value if (end == -1) end = document.******.length; returnvalue=unescape(document.******.substring(offset, end)) } } return returnvalue; } function loadpopup(){ if (get_******('popped')==''){ openpopup() document.******="popped=yes" } } // للمزيد من أكواد الجافا تفضل بزيارتنا // http://www.absba.org/ </script>
<body onunload="loadpopup()">