473,939 Members | 16,762 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Adjusting the width and height of a popup window

Hi,
Im working on a site for a friend, and we've setup a popup window for
a couple pages, but with the code we have, the variables for the width
and height are in the <script> portion of the code, and not on each
individual popup code segment. Is there a way I can add "width=400" or
something to each popup to change its width?

Here's the script portion-

<!--
function Start(page)
{
OpenWin = this.open(page,
"CtrlWindow","t oolbar=No,menub ar=No,location= No,scrollbars=N o,resizable=No, status=Yes,widt h=740,height=56 0,left=0,top=0, ");
}
//-->
</SCRIPT>
and heres the link to the popup-

<a href="javascrip t:void(0);" onclick="javasc ript:Start
('map/map.htm');">
Any suggestions?
Thanks for your time,
Jesse Acosta
jessejosephacos ta att hotmail dott com
Jul 20 '05 #1
1 4331
Ivo
"Jesse Joseph Acosta" <no*****@icehou se.net> wrote in message
news:43******** *************** ***@posting.goo gle.com...
Hi,
Im working on a site for a friend, and we've setup a popup window for
a couple pages, but with the code we have, the variables for the width
and height are in the <script> portion of the code, and not on each
individual popup code segment. Is there a way I can add "width=400" or
something to each popup to change its width?
Make it a function with an extra argument, and insert that in the attributes
string:

function Start(page,heig ht)
{
OpenWin = this.open(page,
"CtrlWindow","t oolbar=No,menub ar=No,location= No,scrollbars=N o,resizable=No, s
tatus=Yes,width =740,height=" + height + ",left=0,top=0" );
}
and heres the link to the popup-


<a href="javascrip t:void(0);" onclick="javasc ript:Start
('map/map.htm',400);" >


Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4490
by: cschang | last post by:
I am not sure this is the right place to ask this question. I have a web page composed with two frames (left and right). Then in my frmae2(right one) , I open a pop-up window by javscript: window.open(...). I hope the pop-up window has the same size of the frame2, therefore I use the document.body.innerHeight and InnerWidth (this is on IE 6), but My question is how can I get the left-top position of the frame2 so that I can use the...
3
6782
by: coolsti | last post by:
I need some help here. I am making an application which allows a user to look at a series of picture files one at a time, and enter the outcome of various visual tests to a database. The application is based on mysql and php on a remote server, and is accessed by the user via a web browser, primarilly IE. The image file names are built up by the server side php scripts, and so a URL for the image file is created, but the file itself is...
2
2832
by: Newbie | last post by:
I'm having trouble changing the width of my pop up window. Changing the width has no effect. private void LinkButton1_Click(object sender, System.EventArgs e) { string script = "<script language=\"javascript\">"; script += "var winOptions = 'fullscreen=no, channelmode=no,status=no,toolbar=no,
6
7616
by: den | last post by:
same thing for the height parameter; for to set in the centre some popup with images what is better? what are the difference?
4
1291
by: joebi | last post by:
Hi all, i 've a question: I want to open a popup with: window.open(url, title, "height=225,width=180,statusbar=0,resizable=0,menubar=0,scrollbars=0"); This works in Mozilla greatful, but not in MSIE7. In MSIE7 is the width of the popup incorrectly. Exists there a minimal width? Ihaven't Idee. Please Help me.
1
1794
by: nitinp | last post by:
Hi, I am opening a popup window "PW.aspx" on click of a button on page "MyPage.aspx". I want to determine width and height of "PW.aspx" on "PW.aspx". I want it for IE window.screen.availHeight - gives me the hight of screen not of popup Pls tell me if any idea. thanks Nitin
1
2960
by: bnashenas1984 | last post by:
Hi everyone I'v seen several websites doing what I'm asking now but I don't know how they do it. Lets say we have an E-commerce website that has a shopping cart inside an IFrame which shows what products have been added. Users should be able to add comments for each product inside the shopping cart (in the Iframe) . When the user clicks on the product a new popup window opens which allows him to add the comment and then save. But...
0
10134
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9963
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11524
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
11292
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
8218
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6076
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6297
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4908
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3502
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.