473,382 Members | 1,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

How to write code in page load to display that window size like popup?

Hi,
How to write code in page load to display that window size like popup?

ex:
Here i writen the code in OnClientClick event now i want in page load

javascript:window.open('Default4.aspx?a=' ,null,'height=550,width=550,status=no, resizable= no, scrollbars=yes, toolbar=no,location=no,menubar=no ')"
Apr 29 '08 #1
2 1703
deric
92
I'm not sure if I completely understand you, but is this the code you're looking for
Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head><title>Title Here</title></head>
  3. <body onload="javascript:window.open('Default4.aspx?a=' ,null,'height=550,width=550,status=no, resizable= no, scrollbars=yes, toolbar=no,location=no,menubar=no ')">
  4.  
  5. </body>
  6. </html>
  7.  
Apr 29 '08 #2
Frinavale
9,735 Expert Mod 8TB
Hi,
How to write code in page load to display that window size like popup?

ex:
Here i writen the code in OnClientClick event now i want in page load

javascript:window.open('Default4.aspx?a=' ,null,'height=550,width=550,status=no, resizable= no, scrollbars=yes, toolbar=no,location=no,menubar=no ')"
You could use the JavaScript Window.Onload event....
eg:
Expand|Select|Wrap|Line Numbers
  1. window.onload=displayWindowSize();
  2. //displayWindowSize() is a function that does what you want it to do....
  3.  
This will run once the web page is finished loading in the browser.


You could also use: <body onload="displayWindowSize();"> which will run the displayWindowSize() function when the body has finished loading.

If my memory serves me right, you have to place the displayWindowSize() method in the <head> section of your page if you use <body onload="displayWindowSize();">.....otherwise I don't think it will work properly.

-Frinny
Apr 29 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Dennis | last post by:
This may be easy for most but I can't get this thing to work. I believe I followed all the instructions but when I click on the link no window opens just the default IE page cannot display. Here is...
4
by: Peter Bons | last post by:
Hi all, I have an asp.net page with a button that has a javascript onclick method attached to it to display a modal dialog like this: If reportHasParameters Then 'add client side onclick()...
4
by: John Boy | last post by:
Hi, Can anyone help. This is really doing my nut in. 3 years ASP exp. and now doing .DOT which is a step in the wrong direction. Basically I am left with the code of a guy who has left. When I...
7
by: GaryDean | last post by:
I have a page that streams PDF documents using the code pasted below. The Page displays the documents just fine but the user is left with no action but to hit the back button on the browser which...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.