I need a javascript code that auto-resizes my page to lets say 300x300 when they go to it. I tried looking on google but couldnt find anything.
need auto-resize javascript code
Collapse
X
-
Comment
-
Comment
-
I tried both this:
<script language="JavaScript">
<!-- START
if (top.frames.length!=0)
top.location=self.document.location;
self.moveTo(0,0)
self.resizeto(300,300)
// END -->
</script>
and this:
<script language="JavaScript">
<!-- START
if (top.frames.length!=0)
top.location=self.document.location;
self.moveTo(0,0)
self.resizeto(300,300);
// END -->
</script>
neither worked and gives me some javascript error. Do I need to add something to the body tag?Comment

Comment