worldhopes
03-02-2003, 12:20 AM
hi i am new to java
i am trying to dectect the screen size of the user and then redirect them depending on results
i have got the following code but it just says
missing ")" but i cant see where.
code is
-------------------------
<script>
var sw=""
var Sh=""
function test{
sw = screen.width
sh = screen.hight
document.write(sw)
}
</script>
______________________________________________
thanks in advance world
i am trying to dectect the screen size of the user and then redirect them depending on results
i have got the following code but it just says
missing ")" but i cant see where.
code is
-------------------------
<script>
var sw=""
var Sh=""
function test{
sw = screen.width
sh = screen.hight
document.write(sw)
}
</script>
______________________________________________
thanks in advance world