Support Forums

Old 04-26-2008, 04:34 AM   #1
Member
 
Join Date: Dec 2006
Posts: 96
Rep Power: 11
objelland is on a distinguished road
Unhappy Javascript - maximize browser window

Hi guys

I am using the following javascript to load another browser window.

Code:
<script type="text/JavaScript">
{literal}
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
{/literal}
</script>
Further on I am trying to use a script to maximize the window on load.
This is the script:

Code:
<script type="text/JavaScript">
{literal}
<!--
function fullScreen() // custom property for window object
{
this.moveTo(0, 0);
this.resizeTo(screen.availWidth, screen.availHeight);
} // end of fullScreen
window.maximize = fullScreen;
//-->
{/literal}
</script>
Here is the call to both the scripts.

Code:
<a href="javascript:void(0);" onclick="MM_openBrWindow('http://www.landsnett.no/demo/modules.php?mod=checkout&skinx=0926','contact','window.maximize')"></a>
As you probarbly understand, this is not working. I am able to open a new browser window but it isn't maximized

I would really appreciate if anyone could take a look at this.
Any hints or help are really appreciated.

Thank you!

Regards

Oyvind
__________________
objelland
V3.1.5b Developer
objelland is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Top bar image not showing up in Internet Explorer Browser vega6143 v3.1 Questions & Support 14 12-20-2007 01:37 PM
Top bar not appearing In browser vega6143 v3.1 Questions & Support 2 12-16-2007 11:37 PM
Need a bigger window to accommodate bigger image jerryc v3.1 Questions & Support 2 06-11-2007 10:36 AM
Parent Window vmstudio v3.1 Questions & Support 4 06-16-2006 05:04 PM


All times are GMT -4. The time now is 04:05 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0