Jump to content

Help with Popup and alert


mike1313

Recommended Posts

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

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>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.