Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Accessing parent window properties

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,63
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Accessing parent window properties
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Accessing parent window properties - 5/29/2001 9:21:47 AM   
  dwheatley

 

Posts: 7
Score: 0
Joined: 5/23/2001
From: Algeria
Status: offline
I need to access properties of a parent and child browser windows using script, does anyone know how to do this? At the very least, I'd like to be able to minimize and maximize parent and child windows.

Help me forum, you're my only hope...

Dean.
 
 
Post #: 1
 
 Re: Accessing parent window properties - 5/29/2001 10:39:04 PM   
  adminkoe

 

Posts: 117
Score: 0
Joined: 12/23/2000
From:
Status: offline
Hi Dean,

We meet again:). Both VBScript and Jscript have almost exactly same ways to access properties, methods and events of a browser.

Here is a sample code for you:

<HTML>
<HEAD>
<SCRIPT LANGUAGE="VBSCRIPT">
intWide = window.screen.width
intHigh = window.screen.height

Sub maximize
window.moveTo 0,0
window.resizeTo intwide,inthigh

End Sub

Sub minimize
window.moveTo 0,0
window.resizeTo 0,0
End Sub


</SCRIPT>
</HEAD>

<BODY>
<input type=button value="Maximize Me!" onClick="vbscript:maximize"><input type=button value="Miimize Me!" onClick="vbscript:minimize">


</BODY>
</HTML>




Regards,
Andi Zain

(in reply to dwheatley)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Accessing parent window properties Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts