TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

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