Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 167
  • 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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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