martinridd
10-21-2003, 04:59 AM
I got some basic popup code from the net somewhere and altered it to popup to a PHP page with two variables set, but it doesn't work! If anyone can look at this code and help me it would be great.
Martin.
This code is in the head of the page:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUpa(URL,titlea,hrefa) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL + '?pagetitle=' + titlea + '&pagefile=' + hrefa, 'inclusive', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=250,height=350');");
}
// End -->
</script>
and I use this is run it in a link:
javascript:popUpa('http://www.amtocdesign.co.uk/pcs/test.php','' + parent.main.document.title + '','' + parent.main.document.location.href + '')
Martin.
This code is in the head of the page:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUpa(URL,titlea,hrefa) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL + '?pagetitle=' + titlea + '&pagefile=' + hrefa, 'inclusive', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=250,height=350');");
}
// End -->
</script>
and I use this is run it in a link:
javascript:popUpa('http://www.amtocdesign.co.uk/pcs/test.php','' + parent.main.document.title + '','' + parent.main.document.location.href + '')