I tried using the resize function on a page, but it seems to make it much smaller than I was aiming for. I am assuming this is because it's measuring the entire window, and not just the visible part of the web page.

After looking around it appears there is something called innerwidth and innerheight. I know there must be some way around this. It seems you almost would have to size the window, then resize it again after subtracting what the inner width would need to be adjusted by.

Is there a better way to do this?