Popup Windows Triggers Based on Mouse Over Links


How to trigger popup windows based on mouse over links with JavaScript?

✍: FYIcenter.com


If you want to trigger a popup window when user moves the mouse over a hyper link, you can use the "onmouseover" attribute in the HTML tag to call a predefined JavaScript function. See the following JavaScript code outline:

<a href="/#top" onmouseover="pLinkOnmouseover();">Mover yo...
<script language="JavaScript">
*  Popup Blocker Test - P_LINK_ONMOUSEOVER
*  - Popup Windows Triggered by Mouse Moving Over Links
*  A popup window shows up when you move your mouse over a 
*  hyper link. JavaScript codes implemented on the 
*  onmouseover event of any type of link tag.
*  Version of 2007.01.01
*  Download at http://sqa.fyicenter.com/tools/
*  Copyright (C) 2007 FYIcenter.com. All rights reserved.
function pLinkOnmouseover() {
   fyicenterWin = window.open('', 'Popup', 'toolbar=no,sc...
   fyicenterWin.document.write('<html><body bgcolor="#ee'...
   fyicenterWin.document.write('<p><b>P_LINK_ONMOUSEOVER ...
   fyicenterWin.document.write(' - Popup Windows Triggere...
   fyicenterWin.document.write(' - Developed by FYIcenter...
   fyicenterWin.document.write('<p><img src="popup_test_f...
   fyicenterWin.document.write('If you see this popup win...

2007-01-17, 8007🔥, 0💬