onmouseover to open a new window for <a>

Is a dynamic computer programming language.[5] It is most commonly used as part of web browsers, whose implementations allow client-side scripts to interact with the user, control the browser, communicate asynchronously, and alter the document content that is displayed.[5] It is also used in server-side network programming with runtime environments such as Node.js, game development and the creation of desktop and mobile applications.
Post Reply
Posts: 94
Joined: Sun Mar 01, 2015 4:36 am

onmouseover to open a new window for <a>

Post by dzcadii » Sun Mar 01, 2015 11:00 pm

Code: Select all


<script type="text/javascript">

function my_fun(my_win){
my_win = my_win;
//Below you can add the additional parameters for the window.open() see reference list



<a href="" onmouseover="my_fun('http://dzsoundnirvana.com/')">Open my window</a>

status The status bar at the bottom of the window.
toolbar The standard browser toolbar, with buttons such as Back/Forward.
location The Location entry field where you enter the URL.
menubar The menu bar of the window
directories The standard browser directory buttons
resizable Allow/Disallow the user to re size the window.
scrollbars Enable the scroll bars if the document is bigger than the window
height Specifies the height of the window in pixels. (example: height='150')
width Specifies the width of the window in pixels. (example: width='150')

Example of the parameters:

Code: Select all

window.open ("http://dzsoundnirvana.com/",

Post Reply