...

View Full Version : Screen size



worldhopes
03-02-2003, 01: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

joh6nn
03-02-2003, 01:37 AM
<script>

var sw=""
var Sh=""

function test{
sw = screen.width
sh = screen.height
document.write(sw)
}

</script>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum