Forum Moderators: coopster
<!--
var str = "left=0,screenX=0,top=0,screenY=0";
if (window.screen) {
var ah = screen.availHeight - 30;
var aw = screen.availWidth - 10;
str += ",height=" + ah;
str += ",innerHeight=" + ah;
str += ",width=" + aw;
str += ",innerWidth=" + aw;
} else {
str += ",resizable"; // so the user can resize the window manually
}
function fullScreen(theURL) {
return window.open(theURL, '', str);
}
// -->
why the javascript function?
why not just good old html?
I almost said the same, but he wants JS to change client display, so that's correct. The thing I was thinking, though, is that once he works out his basic problems, he might want to sniff for JS being enabled and show/hide the link accordingly.
In the following:
[us3.php.net...]
read the sections on "Useful functions" (which covers concatenation) and the sections on "single-quoted" and "double-quoted" regarding escaping quote marks to avoid syntax errors caused by improper quote matching.