I noticed in your function that you are missing a parameter. This is what I posted for you to use. Note the part in red:
Code:
function poponload(url)
{
var testwindow = window.open (url, "mywindow","location=no,status=0,scrollbars=0,menubar=0,resizable=0,toolbar=0,directories=0,width=750,height=550");
testwindow.moveTo(25,40);
}
ok. I realized now that it may be my php syntax. I was successful in launching the website without my php coding. If you have any suggestions for the above php script, please post. Meanwhile i will be researching php syntax. Thanks for all your help and future help. O. Im using PHP version 4.4.8
} else { echo '<p>You are not logged in.</p>'; echo '<p>Only logged in members may view information on this page.</p>'; echo '<a href="h7.php" class="linkw">Back to main page please</a>';
}
?>
Just one last question....What is the reason for adding the comments (<!-- ... -->) within the javascript....It works with and without so why use it?
It used to be a requirement in case the browser didn't support JavaScript -- that way, it would be commented out and not cause errors during page load. Browsers nowadays should be smart enough to skip the JavaScript code even if they don't support it. But, ya never know.
Bookmarks