Solved

onClick popup win change size.

Posted on 2000-05-08
3
155 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
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…

863 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now