Collections:
Other Resources:
Generating Popup Windows that Opens Again When They Are Closed
How to generate popup windows that opens again when they are closed?
✍: FYIcenter.com
If you want to generate a popup window that opens again right after you close it, you can use the "closed" attribute of the window object to call the open function repeatedly. See the following JavaScript code outline:
<a href="javascript:pWindowSetTimeoutTest();">Click...
...
<script>
/*
* Popup Blocker Test - P_WINDOW_REOPEN
* - Popup Windows Open Again If They Are Closed
*
* A single popup window that will open again if you close
* it. JavaScript codes used to check the closed status.
*
* Version of 2007.01.01
* Download at http://sqa.fyicenter.com/tools/
* Copyright (C) 2007 FYIcenter.com. All rights reserved.
*/
function pWindowReopenStart() {
fyicenterTimer = window.setInterval(pWindowReopen,1000);
}
function pWindowReopenStop() {
window.clearInterval(fyicenterTimer)
}
function pWindowReopen() {
if (typeof fyicenterWin == 'undefined' || fyicenterWin...
fyicenterWin = window.open('popup_blocker_test_popu...
'', 'toolbar=no,scrollbars=no,resizeable=no,widt...
}
}
</script>
You can also visit Popup Blocker Test - P_WINDOW_REOPEN page to get the complete source code and to see how it works.
2007-01-17, ∼9224🔥, 0💬
Popular Posts:
Where to find information about what services are running on Windows 8 and how to manage them? I wan...
What is the "CmRcService.exe" process on windows 7? Is the "CmRcService.exe" process a virus? Can I ...
What is HPQTOA~1.EXE or HPQToaster.exe - Process - HpqToaster Module? Process HPQTOA~1.EXE or HPQToa...
My mail cannot sync and there is a message that my email address is not available when I click on th...
How to configure Mozilla FireFox to use Notepad to edit Web page source code? By default, when you u...