mike1313 Posted November 30, 2007 Share Posted November 30, 2007 I have the following to open a page in a new window once someone clicks the link is it possible to make it so when the users clicks the link it opens an alert without having to add JS to the page thats being loaded into the popup? <SCRIPT LANGUAGE="Javascript"> function itemUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=600,left = 0,top = 0');"); } </script> Link to comment https://forums.phpfreaks.com/topic/79545-help-with-popup-and-alert/ Share on other sites More sharing options...
phpQuestioner Posted November 30, 2007 Share Posted November 30, 2007 like this? <SCRIPT LANGUAGE="Javascript"> function itemUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=600,left = 0,top = 0');"); alert("Hello World!"); } </script> Link to comment https://forums.phpfreaks.com/topic/79545-help-with-popup-and-alert/#findComment-403258 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.