Reputation: 63
I wanted to have an auto close feature for 5 seconds on my script, after 5 seconds the pop up window closes but since I researched about it,I didnt understand what the code said so I am here to ask how is the coding for it heres my code:
<script type="text/javascript">
function openWin()
{
window.name = "_oldWindow";
myBtn=window.open('','_NewWindow ','width=200,height=200');
myBtn.document.write("<p>Lot Name: Esperanza</p>");
myBtn.document.write("<p>Lot Price: P800,000</p>");
myBtn.document.write("<p>Lot Size: 50 sq. metres</p>");
myBtn.document.write('<a href="Admin/reserve.php" target="_oldWindow">Reserve</a>');;
myBtn.focus();
}
</script>
Upvotes: 1
Views: 85