Is there a way to set window dimensions for a web page?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a page in a website which consists of a simple form that sends the
submitted data to an email address. I have this page set to always open in a
seperate window (when hyperlinked to), but would also like said window to
have smaller dimensions to neatly fit around the form and for the previous
page to still be visible. Think pop-up box, but with form capabilites. Can
this be done in Frontpage 2002? Thanks for any and all assitance.
 
You can do this with JavaScript

Switch to Code View and paste this before the </head> tag

<script language="JavaScript">
<!---
var ViewWindow
function PopUpWindow(Display)
{
ShowWindow1=window.open("","ViewWindow","toolbar=0,menubar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,width=320,height=420,top=30,left=30");
ShowWindow1.location.href=Display
self.ViewWindow = ShowWindow1
}
//--->
</script>

and then change your links to use the script. Ex:

<a href="javascript:PopUpWindow('mypage.htm');">Pop Up Windows</a>

You control the height, width and placement of the window by changing the
values in the JavaScript.
 
Back
Top