GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   javascript help (https://gfy.com/showthread.php?t=70672)

gallerypost 08-04-2002 10:35 AM

javascript help
 
Hey guys.

I got a site that i'm opening as a popup with an odd window size, without a way to resize it, i want to place on that site a button that when the user click on it it'll change the page properties to the max window site and etc... (like a regular ie window).

Anyone can give me a sample how to do it ?

Thanks.

sexyclicks 08-04-2002 12:04 PM

target="_new" ????

Hind 08-04-2002 03:11 PM

Sure i can, use this in the HEAD tag of the window as a javascript:

********
function sendMe(url)
{
exit=false;
width = self.screen.availWidth;
height = self.screen.availHeight;
window.open(url,"windows_name","width="+width+",he ight="+height+",top=0,left=0,directories=yes,locat ion=yes,menubar=yes,scrollbars=yes,status=yes,tool bar=yes,resizable=yes,maximize=null,outerHeight=0, outerWidth=0");
window.close();
}
********

and this in the button as link:
a href="javascript:void(0)" onClick="sendMe('http://www.blabla.com/')"


let me know if worked for you.

Hind 08-05-2002 03:57 PM

Hey, it worked?

dodo 08-05-2002 04:22 PM

why not just href="javascript:sendMe('http://www.blabla.com/')"

_

Hind 08-05-2002 04:26 PM

mmm, good point... :thumbsup


All times are GMT -7. The time now is 05:31 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123