Script Categories













Menus and Navigation >>> Centered Popup.

Opens a new popup window centered on the page according to the width and height of the user's screen. You can customize the width, height, and scrollbars on or off for each window you open.

Popup Directory

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

<script language="javascript" type="text/javascript">
/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
//  End -->
</script>
<center>
<!-- Put the URL inside the link's href="..." section, then carefully -->
<!-- change 'name' to a name for your popup window.  The last three -->
<!-- items represent the popup window width, height, and scrollbars. -->
<a href="http://yaldex.com/JSFactory_Pro.htm" onclick="NewWindow(this.href,'name','400','400','yes');return false;">Popup Directory</a>
</center>

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.



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




©