Results 1 to 3 of 3
Thread: possible to do the following
Oct 18, 2011, 14:38 #1
- Join Date
- Sep 2009
- 0 Post(s)
- 0 Thread(s)
possible to do the following
at my page at www.meadowlarkco.com/customersnew2.php Im going to make the word 'Technology' a link to open up a popup, but how can I set the size of the popup?
The other thing I was thinking of doing was when the user clicks on Technology have my technology content open up in the same spot as where the control image is, could someone give me an idea on how to start about doing this? Im assuming I couldn't have the control image a background image as it is now.
Oct 18, 2011, 15:32 #2
You can specify both the size and the placement of the popup in the window.open method, but it looks like you're already doing both (reformatted for readability):
window.open( 'http://www.meadowlarkco.com/customersnew2.php', 'popup', 'width=500,height=500,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0' );
Just change the width and the height to whatever size you'd like.
<a href="..." onclick="window.open(...); return false">Technology</a>
But the point of all this is that you can then access the event object, which has the clientX and clientY properties, which you can use to set the popup's position.
Essentially, you'll want to change your HTML to something like this:
Sep 30, 2012, 05:49 #3
use this code <a href="..." onclick="window.open(...); return false">Technology</a>