I need to output a javascript value for screen.width and screen.height into a simple html link. e.g. <a href="http://mysite/myfolder/?keepThis=true&TB_iframe=true&height=[B]HELP[/B]&width=[B]HELP[/B]" class="smoothbox" title="mypage">mypage</a> Code (markup): Is there a way to directly apply the value where I hightlighted "HELP", or is there a different method needed? Thanks in advance for your advice.
I've just managed to tinker with it a bit further and got it working here is my code document.write('<a href="http://mysite/myfolder/?keepThis=true&TB_iframe=true&height='+ screen.height +'&width='+ screen.width +'" class="smoothbox" title="mypage">mypage</a>'); Code (markup): Took me a while to do this as I'm not a JavaScript programmer