|
-
Nov 4th, 2001, 04:49 PM
#1
Thread Starter
Hyperactive Member
Auto Maximize?
How can I make a window maximize itself after I load it (new window) from a link?
-Emo
-=VB6 Enterprise Edition=-
-=VC++6Enterprise Edition=-
«¤E³m°O²™¤»
-
Nov 4th, 2001, 09:29 PM
#2
Conquistador
put in the page that is being loaded:
Code:
<script language="Javascript">
window.moveTo(0,0)
window.resizeTo(screen.width,screen.height)
</script>
-
May 2nd, 2008, 11:08 AM
#3
Addicted Member
Re: Auto Maximize?
I have tried using the code but the problem when I click the Maximize button of the window it still maxmize to some extend and also the Maximize symbol is also changed (The symbol that would appear when the Window page is in Maximized mode).
Is there any other thing i want to set to the current window? Is there a way to set the Current window in Maximized mode in Javascript?
Regards
Srinivasan Baskaran
India
-
May 2nd, 2008, 01:50 PM
#4
Re: Auto Maximize?
The code shown above is how it's usually done. Are you saying it's going large but not large enough? Explain with screenshots if you must.
Also, someone's going to point this out to you at some point, so I'll take the bait - having client script "do things" to the end user's window is rather annoying and you should have a really good reason for wanting to do this. I can't think of a reason for wanting to do this.
-
May 5th, 2008, 03:29 AM
#5
Addicted Member
Re: Auto Maximize?
I have used the Javascript Code,
Code:
window.moveTo(0, 0);
window.resizeTo(screen.Width,screen.Height);
in a routine PageSize and called this in Onload event of the Body.
On Executing the page shows like this in the Attachment "screenshot1.gif"
Also when I click on the middle Icon, the page maximize stills and the icon changes to double window as shown in the Attachment "screenshot2.gif".
Is my problem is valid? Is there any other thing I need to handle in the code??? Kindly comment...
Regards
Srinivasan Baskaran
India
-
May 14th, 2008, 06:09 AM
#6
Addicted Member
Re: Auto Maximize?
Is there any other option i have missed above???
Regards
Srinivasan Baskaran
India
-
May 14th, 2008, 07:21 AM
#7
Re: Auto Maximize?
Is that a problem? When a window is maximized, it's supposed to have that "double window" icon in the middle there.
If you're wondering why it doesn't happen the first time, it's because the window isn't being maximized by the javascript code, it's being resized. You can resize a window to any size you want, even larger than the screen width and height.
-
Aug 6th, 2008, 07:18 AM
#8
Addicted Member
Re: Auto Maximize?
Thanks da_silvy and mendhak.
Regards
Srinivasan Baskaran
India
-
Aug 7th, 2008, 02:31 PM
#9
Re: Auto Maximize?
No problem, add [Resolved] and post back if you have more questions.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|