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> Quote Link to comment 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> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.