Collections:
Other Resources:
Popup Windows Triggers When Pages Are Loaded without Use onload Attribute
How to trigger popup windows when pages are loaded with JavaScript, but not using the "onload" attribute
✍: FYIcenter.com
If you want to trigger a popup window whenever a Web page is unloaded, you can enter JavaScript code directly in the HTML HEAD block. See the following JavaScript code outline:
/* * Popup Blocker Test - P_HEAD_ONLOAD * - Popup Windows Triggered by Page Loading Events * * A popup window shows up when a page is loaded into the * browser. JavaScript codes implemented in the HEAD tag * directly. * * Version of 2007.01.01 * Download at http://sqa.fyicenter.com/tools/ * Copyright (C) 2007 FYIcenter.com. All rights reserved. */ fyicenterWin = window.open('', 'Popup', 'toolbar=no,sc... fyicenterWin.document.write('<html><body bgcolor="#eee... fyicenterWin.document.write('<p><b>P_HEAD_ONLOAD Test<... fyicenterWin.document.write(' - Popup Window Triggered... fyicenterWin.document.write(' - Developed by FYIcenter... fyicenterWin.document.write('<p><img src="/popup_test_... fyicenterWin.document.write('If you see this popup win... fyicenterWin.document.write('</body></html>'); fyicenterWin.document.close(); </script>
You can also visit Popup Blocker Test - P_HEAD_ONLOAD page to get the complete source code and to see how it works.
2007-01-17, 7387🔥, 0💬
Popular Posts:
What is tfswctrl.exe process - Sonic Drive Letter Access Component? Process tfswctrl.exe is the Driv...
Can I remove startup application "SynTPEnh.exe - Synaptics TouchPad Enhancements" to speedup my comp...
Can I remove startup application "DSAgnt.exe - Dell Support Agent" to speedup my computer and reduce...
What is AcroIEHelper.dll - DLL file - Adobe Acrobat IE Helper Version 6.0 for ActiveX? DLL AcroIEHel...
What is HPQTOA~1.EXE or HPQToaster.exe - Process - HpqToaster Module? Process HPQTOA~1.EXE or HPQToa...