Script Categories

Buttons Effects >>> Position.

Do you not like where opens your new windows? Using this JavaScript, you can actually have the new window open wherever you want!

Open Window

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">
/* Visit for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
function win() {"","msg","height=200,width=200,left=80,top=80");
msg.document.write("<body bgcolor='white' onblur=window.close()>");
msg.document.write("<center>page content here</center>");

// If you just want to open an existing HTML page in the
// new window, you can replace win()'s coding above with:

// End -->
type="button" value="Open Window" onclick="win()">
<a href="javascript:win()">Open Window</a>

Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.

Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).