Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 170
  • Last Modified:

onClick popup win change size.

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
avim
Asked:
avim
  • 2
1 Solution
 
Michel PlungjanIT ExpertCommented:
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
 
avimAuthor Commented:
the script works GREAT!
thank you very much for your help
(so fast too:-)
Avi.M
0
 
Michel PlungjanIT ExpertCommented:
You are welcome.

Not the fastest I have done...

I think my current record is 2 minutes ;-)

Michel
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

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.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now