Collections:
Other Resources:
Triggering Popup Windows Repeatedly with Fixed Intervals
How to trigger popup windows repeatedly with fixed intervals?
✍: FYIcenter.com
If you want to trigger a popup window repeatedly with a fixed interval, you can use the window.setTimeout() method to delay calling of a predefined function. See the following JavaScript code outline:
<a href="javascript:pWindowSetIntervalStart();">Click...
...
<a href="javascript:pWindowSetIntervalStop();">Click ...
...
<script>
/*
* Popup Blocker Test - P_WINDOW_SETINTERVAL
* - Popup Windows Triggered at Fixed Time Intervals
*
* A series of popup window shows up with a fixed time
* interval after the page is loaded into the browser.
* JavaScript codes implemented with a setInterval method
* call.
*
* Version of 2007.01.01
* Download at http://sqa.fyicenter.com/tools/
* Copyright (C) 2007 FYIcenter.com. All rights reserved.
*/
function pWindowSetIntervalStart() {
fyicenterTimer = window.setInterval(pWindowSetInterval...
}
function pWindowSetIntervalStop() {
window.clearInterval(fyicenterTimer)
}
function pWindowSetInterval() {
fyicenterWin = window.open('popup_blocker_test_popup_h...
'', 'toolbar=no,scrollbars=no,resizeable=no,width=4...
}
</script>
You can also visit Popup Blocker Test - P_WINDOW_SETINTERVAL page to get the complete source code and to see how it works.
2021-03-10, ≈10🔥, 2💬
Popular Posts:
Can I remove startup application "PRONoMgr.exe - PRONotifyMgr Module" to speedup my computer and red...
Can I disable Windows service "IMAPI CD-Burning COM Service" to speedup my computer? Windows service...
What is the "World Wide Web Publishing Service (W3SVC)" system service on Windows Server 2012? Can I...
What is the scheduled task "\Microsoft\Windows\WDI\ ResolutionHost"on my Windows 7 computer? "\Micro...
What is the scheduled task "\Microsoft\Windows\RAC\ RacTask"on my Windows 7 computer? "\Microsoft\Wi...