»
AnglaisFrançaisVietnamien

Imprimer - Pop-up window onMouseOver - JavaScriptBank.com

Version complète: jsB@nk » Browser » Window » Pop-up window onMouseOver
URL: https://www.javascriptbank.com/popup-onmouseover.html

Pop-up window onMouseOver © JavaScriptBank.comIl s'agit d'un petit exemple pour but de vous montrer comment créer une «fenêtre pop-up». Le but est que vous pouvez avoir plus d'informations sur votre page Web sans encombrer la composent.

Version complète: jsB@nk » Browser » Window » Pop-up window onMouseOver
URL: https://www.javascriptbank.com/popup-onmouseover.html



JavaScript
<script language="JavaScript"><!-- hidingvar newwindow;function showWindow(){        newwindow = window.open("", "newwindow", "toolbar=no,width=300,height=25,top=30,left=30");        newwindow.document.open();        newwindow.document.write("<html><title>The &quot;pop-up window&quot;<\/title><body bgcolor='#C0C0C0' style='margin-left:25px;margin-right:25px;text-align:center' text='#008080'><em>Here is more interesting and useful information for your visitors!<\/em><\/body><\/html>");        newwindow.document.close();}function closeWindow(){        newwindow.close();      }// --></script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<a href="http://javascriptbank.com" target="_blank" onclick="return false" style="text-decoration: none;" onmouseover="return showWindow();" onmouseout="return closeWindow();">Mouse over here to see how it works.</a><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->