Percentages aren't allowed for the width/height with the window.open method. Instead, those figures need to be calculated per the screen size...
Code:
function popWin(nUrl) {
var w = screen.availWidth;
var h = screen.availHeight;
var features = 'width = '+w+', height='+h+', scrollbars=yes, toolbar=no, status=no';
window.open(nUrl, 'tutorials', features);
}
And to make sure your links properly degrade and are search engine friendly, I'd do it like this...
Code:
<a href="photoshop/tutorial1.php" onclick="popWin(this.href);return false;" class="special">View this Tutorial</a>
You can adjust the function to have more parameters for more flexibility, if you need it. Otherwise, you can just leave the other data hard-coded in the function.
Oh, and you may notice that I changed 'scrollbars=auto' to 'scrollbars=yes'. auto is a CSS value for the overflow property, and not a valid value here. Scrollbars on a window by their nature behave as auto does for overflow
Bookmarks