Hey guys,
I am tryig to write a piece of code so that when the variable $mode = 2, then the window resizes via javascript, but it doesn’t do anything right now. Here’s what I have:
if ($mode == 2) {
echo”<script language=javascript>window.resizeTo(800,600)</script>”;
}
thanks!
[code=php]<?php if($mode == 2) { echo "<script language="JavaScript" type="text/javascript"> <!-- window.resizeTo(800,600); //--> </script>"; } ?>[/code]
Help @haunsolo spread the word by sharing this article on Twitter...