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

E

Erica

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.
 
D

David Berry

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top