![]() |
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. |
target="_new" ????
|
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. |
Hey, it worked?
|
why not just href="javascript:sendMe('http://www.blabla.com/')"
_ |
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