Z
Zilbandy
I've tried the following with IE6, FireFox2 and Opera9. Javascript is
enabled in all three browsers but this only works in IE. I'm very new
to Javascript and this first exercise is very frustrating. Here's the
code in question:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Tubac Woodworks, Inc. — Portfolio</TITLE>
<META http-equiv="Content-Type" Content="text/html; charset=utf-8">
<META http-equiv="refresh" content="2;url=./PageB/frameset.htm">
<script type="text/javascript" language="javascript">
function detect(){
if(screen.width<1024){
location.href('PageA/frameset.htm');
}else{
location.href('PageB/frameset.htm');
}
}
</script>
</HEAD>
<BODY onLoad="detect()">
</BODY>
</HTML>
The url to the page of concern is http://tubacwoodworks.com. If you
visit this page, no comments on using frames for layout, please. I'm
trying to address one problem at a time. CSS is just as new to me
as JS.
enabled in all three browsers but this only works in IE. I'm very new
to Javascript and this first exercise is very frustrating. Here's the
code in question:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Tubac Woodworks, Inc. — Portfolio</TITLE>
<META http-equiv="Content-Type" Content="text/html; charset=utf-8">
<META http-equiv="refresh" content="2;url=./PageB/frameset.htm">
<script type="text/javascript" language="javascript">
function detect(){
if(screen.width<1024){
location.href('PageA/frameset.htm');
}else{
location.href('PageB/frameset.htm');
}
}
</script>
</HEAD>
<BODY onLoad="detect()">
</BODY>
</HTML>
The url to the page of concern is http://tubacwoodworks.com. If you
visit this page, no comments on using frames for layout, please. I'm
trying to address one problem at a time. CSS is just as new to me
as JS.