is there a way that these two codes can be combined?

admin

Administrator
Staff member
this one..


<A HREF=http://www.webdeveloper.com/forum/archive/index.php/"main.htm" TARGET="popup" ONCLICK="window.open('main.htm', 'popup', 'width=680,height=475')"><img src=http://www.webdeveloper.com/forum/archive/index.php/"intro.jpg" border="0"></a>




and this one..


<script>
window.onload=doit
function doit(){
window.resizeTo(500,500);/* the first number is for width, the second height*/
window.focus(); //brings window to front
}
</script>





because i want the window to load at a custom size.. but i dont want the control bars or scroll bar or status bar i only want the blue bar at the top with the'close' 'minimize' and 'restore' buttons on it.. this is what the first code makes the window look like when the link is clicked on an the window pops up.

so yea is there a way? if so whats the code :D

thnx

Matt
 
Back
Top