PopUp Window
How to Display a Webpage in the PopUp Window after Clicking from a Link using JavaScript
The following code will add a link to your webpage and when clicked on the link, the hyperlinked webpage will open in a popup window
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=500,height=600,left = 262,top = 84');");
}
Prompt an Automatic Add to Favorite popup window with 10 second delay using JavaScript
Prompt an Automatic Add to Favorite Popup window 10 seconds after a user visits your website. Add the following code to the body section of your html document
<SCRIPT LANGUAGE="JavaScript">
<!-- //Hide From Old Browsers
/* Do Not Remove the Following Line
For more scripts visit http://www.w3courses.com
*/
//Change the following link to yours
var link = "http://www.w3courses.com";
Prompt an automatic Add to Favorite Popup Window using JavaScript
Prompt an automatic Add to Favorite Popup window when a user visits your website. Add the following code to the head section of your html document
<SCRIPT LANGUAGE="JavaScript">
<!-- //Hide From Old Browsers
/* Do Not Remove the Following Line
For more scripts visit http://www.w3courses.com
*/
//Change the following link to yours
var link = "http://www.w3courses.com";
