Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
|
|
Popup, Fitted window on click |
Page: 1 | Reply |
Jun 26th 2002 | #55283 Report |
Member since: Dec 20th 2001 Posts: 13 |
Hey guys, actually, two things. One. I need to set up a link that when you click on it, it opens a popup window, in a fitted size, but it needs to be a link that you click on, not one that opens automatically. Two. For that window that's gonna pop open, i need to have a "close window" link, here's the thing though, the page that opens in that popup has frames, and when i put the "close window" link in a frame it doens't work, it does a page not found to that frame, i need to close the whole window. Thanks in advance guys. |
Reply with Quote Reply |
Jun 27th 2002 | #55352 Report |
Member since: Mar 20th 2001 Posts: 3367 |
Put this inside your <head></head> <script> function OpenWindow( url, width, height, options, name ) { var newWin = window.open( url, name, "width=" + width + ",height=" + height + "," + options ); } </script> This is to open the window <a href="javascript:void(0);" onClick="OpenWindow('page.html',width,height,'scrollbars=no,menubar=no,toolbar=no,location=no,status=no,resizable=no'); return false">text</a> AND <a href="javascript:this.window.close();">close window</a> Go shooo.. have fun :D |
Reply with Quote Reply |
Page: 1 | Back to top |
Please login or register above to post in this forum |
© Web Media Network Limited. All rights reserved. No part of this website may be reproduced without written permission. Photoshop is a registered trademark of Adobe Inc.. TeamPhotoshop.com is not associated in any way with Adobe, nor is an offical Photoshop website. |