Coding Coder
02-24-2011, 02:06 PM
I am currently updating an online form and to do the follwoing:
This form is posted once a month via a link from the homepage but also from our forums. I want to know what code I need to add so that no matter how the form is accessed (Its a HTML form) when the new window opens it will resize and remove the toolbars, scrollbars and menu bars.
I want it to be done via onload. from what I have read this can be done and so far Ive managed to code it so that everytime the page loads it opens in a new window at 610x370 and the scrollbars dissapear but I cant for the life of me remove the toolbars and menu bars. I know this would be impossible if I was trying to load the form in the same parent window but I am trying to load it into a new window and I just cant get it to work.
Here is the code im using:
<script language="javascript">
function resizeWindow()
{
window.resizeTo(610,370)
}
</script>
<body onload="resizeWindow()" scroll=no>
Many Thanks to who ever can help me as I am really stuck.
This form is posted once a month via a link from the homepage but also from our forums. I want to know what code I need to add so that no matter how the form is accessed (Its a HTML form) when the new window opens it will resize and remove the toolbars, scrollbars and menu bars.
I want it to be done via onload. from what I have read this can be done and so far Ive managed to code it so that everytime the page loads it opens in a new window at 610x370 and the scrollbars dissapear but I cant for the life of me remove the toolbars and menu bars. I know this would be impossible if I was trying to load the form in the same parent window but I am trying to load it into a new window and I just cant get it to work.
Here is the code im using:
<script language="javascript">
function resizeWindow()
{
window.resizeTo(610,370)
}
</script>
<body onload="resizeWindow()" scroll=no>
Many Thanks to who ever can help me as I am really stuck.