Script Categories













Messages >>> Auto Popup Window.

Automatically opens a small popup window and closes it after a specified time. Great for displaying important messages without forcing users to close multiple windows!

This demo will open a small popup window 3 seconds after the page is loaded and close the window after it has been open for 5 seconds.

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 popupWin() {
text =  "<html>\n<head>\n<title>Pop Window</title>\n<body>\n";
text += "<center>\n<br>";
text += "<a href='http://yaldex.com/JSFactory_Pro.htm' target='_blank'><h2>New JavaScripts</h2></a>";
text += "</center>\n</body>\n</html>\n";
setTimeout('windowProp(text)', 3000); // delay 3 seconds before opening
}
function windowProp(text) {
newWindow = window.open('','newWin','width=300,height=100');
newWindow.document.write(text);
setTimeout('closeWin(newWindow)', 5000); // delay 5 seconds before closing
}
function closeWin(newWindow) {
newWindow.close(); // close small window and depart
}
window.onload=popupWin;
//  End -->
</script>
<center>
This demo will open a small popup window 3 seconds after the page is loaded and close the window after it has been open for 5 seconds.
</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!).

online casino reviews canada


©