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
Solved

onClick popup win change size.

Posted on 2000-05-08
3
159 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
  • 2
3 Comments
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 50 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…

828 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