J
Jim Van Abbema
I have a frames site that uses several pages subcontracted and operated from
another site. At 1024 x 768 these pages fit well within the frames, but at
800 x 600 and lower they require their own browser windows. I am using the
following script to detect screen resolution and redirect viewers:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function redirectPage() {
var url640x480 = "http://example.com/example";
var url800x600 = "http://example.com/example";
var url1024x768 = "http://example.come/example";
if ((screen.width == 640) && (screen.height == 480))
window.location.href= url640x480;
else if ((screen.width == 800) && (screen.height == 600))
window.location.href= url800x600;
else if ((screen.width == 1024) && (screen.height == 768))
window.location.href= url1024x768;
else window.location.href= url640x480;
}
// End -->
</script>
How could I modify this or another script to force the 640x480 and 800x600
pages to open in a new browser window? Inserting target="_blank" with the
URL does not work!
Thanks,
Jim Van Abbema
another site. At 1024 x 768 these pages fit well within the frames, but at
800 x 600 and lower they require their own browser windows. I am using the
following script to detect screen resolution and redirect viewers:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function redirectPage() {
var url640x480 = "http://example.com/example";
var url800x600 = "http://example.com/example";
var url1024x768 = "http://example.come/example";
if ((screen.width == 640) && (screen.height == 480))
window.location.href= url640x480;
else if ((screen.width == 800) && (screen.height == 600))
window.location.href= url800x600;
else if ((screen.width == 1024) && (screen.height == 768))
window.location.href= url1024x768;
else window.location.href= url640x480;
}
// End -->
</script>
How could I modify this or another script to force the 640x480 and 800x600
pages to open in a new browser window? Inserting target="_blank" with the
URL does not work!
Thanks,
Jim Van Abbema