Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sizing your window 1

Status
Not open for further replies.

ahbyun

Technical User
Dec 11, 2004
9
0
0
KR
Hi!

I'm trying to figure out a way using Frontpage so that when I open my website, I can open it with a specific size.
How can I set the size so that it opens it that way??

Thank you.
 
Hi ahbyuan

I've never done this as such, but you may be able to adapt the following, which I've used to launch a 'pop-up' of a specific size from a control on another page.

In client-side jscript:
function popup(mylink, windowname) {
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=500,height=480,scrollbars=yes');
return false;
}

In html:
<a href="field_values.asp" onClick="return popup(this, 'info')"><img border="0" src="myicon.gif" width="23" height="24" align="top"></a>

HTH!
 
I had the same kind of question and was looking for a simple tip.
This one is perfect. Thank you very much.

Could you also tell us, if possible, how to have the window appear without any menu or toolbar?

_______________________________________

Eman_2005
Technical Communicator
 
You'll need some to use some Javascript to open your window without a toolbar. Here's a link to a pretty good example of how to do it:


There are a lot of other examples online, just do an advanced Google search for [blue]HTML JAVASCRIPT "NO TOOLBAR"[/blue] and you should come up with quite a few.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top