may sound noob, but can't you just say

location.href = screen.width;

?