Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

onClick popup win change size.

Posted on 2000-05-08
3
Medium Priority
?
165 Views
Last Modified: 2008-03-06
I`m working at the moment on a pop-up window which by clicking an image, the
pop-up`s size should be changed, and by that showing the rest of the windows content.
0
Comment
Question by:avim
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 200 total points
ID: 2787791
If the image is inside the popup do this:

<a href="javascript:;" onClick="window.resizeTo(800,600); return false"><img src="resize.gif" border=0></A>

if it is in the window that opened it with

winId = window.open(....);

<a href="javascript:;" onClick="if (winId &&!winId.closed) winId.resizeTo(800,600); return false"><img src="resize.gif" border=0></A>

Michel
0
 

Author Comment

by:avim
ID: 2788045
the script works GREAT!
thank you very much for your help
(so fast too:-)
Avi.M
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 2788096
You are welcome.

Not the fastest I have done...

I think my current record is 2 minutes ;-)

Michel
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

597 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question