IT Community - Software Programming, Web Development and Technical Support

Javascript window object

This is a discussion on Javascript window object within the HTML, CSS and Javascript Coding Techniques forums, part of the Web Development category; hi, We are very familiar of using window objects for lot of reasons. Here i have listed some its properties ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > HTML, CSS and Javascript Coding Techniques

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-21-2007, 12:44 AM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,162
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Javascript window object

hi,
We are very familiar of using window objects for lot of reasons. Here i have listed some its properties and methods below

Properties
  1. closed -Returns whether or not a window has been closed
  2. defaultStatus -Sets or returns the default text in the statusbar of the window
  3. document -See Document object
  4. history -See History object
  5. length -Sets or returns the number of frames in the window
  6. location -See Location object
  7. name -Sets or returns the name of the window
  8. opener -Returns a reference to the window that created the window
  9. outerheight -Sets or returns the outer height of a window
  10. outerwidth -Sets or returns the outer width of a window
  11. pageXOffset -Sets or returns the X position of the current page in relation to the upper left corner of a window's display area
  12. pageYOffset -Sets or returns the Y position of the current page in relation to the upper left corner of a window's display area
  13. parent -Returns the parent window
  14. personalbar -Sets whether or not the browser's personal bar (or directories bar) should be visible
  15. scrollbars -Sets whether or not the scrollbars should be visible
  16. self -Returns a reference to the current window
  17. status -Sets the text in the statusbar of a window
  18. statusbar -Sets whether or not the browser's statusbar should be visible
  19. toolbar -Sets whether or not the browser's tool bar is visible or not (can only be set before the window is opened and you must have UniversalBrowserWrite privilege)
  20. top -Returns the topmost ancestor window

Methods
  1. alert() -Displays an alert box with a message and an OK button
  2. blur() -Removes focus from the current window
  3. clearInterval() -Cancels a timeout set with setInterval()
  4. clearTimeout() -Cancels a timeout set with setTimeout()
  5. close() -Closes the current window
  6. confirm() -Displays a dialog box with a message and an OK and a Cancel button
  7. createPopup() -Creates a pop-up window
  8. focus() -Sets focus to the current window
  9. moveBy() -Moves a window relative to its current position
  10. moveTo() -Moves a window to the specified position
  11. open() -Opens a new browser window
  12. print() -Prints the contents of the current window
  13. prompt() -Displays a dialog box that prompts the user for input
  14. resizeBy() -Resizes a window by the specified pixels
  15. resizeTo() -Resizes a window to the specified width and height
  16. scrollBy() -Scrolls the content by the specified number of pixels
  17. scrollTo() -Scrolls the content to the specified coordinates
  18. setInterval() -Evaluates an expression at specified intervals
  19. setTimeout() -Evaluates an expression after a specified number of milliseconds
__________________
With,
J. Jeyaseelan

Everything Possible
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-21-2007, 01:23 AM
vadivelanvaidyanathan vadivelanvaidyanathan is offline
D-Web Genius
 
Join Date: Feb 2007
Posts: 803
vadivelanvaidyanathan is on a distinguished road
Default Re: Javascript window object

Include some of the methods along with above

20.back(): Loads the previous page in the window
21.captureEvents(): Sets the window to capture all events of a specified type
22.find(string, case, direction)isplays a Find dialog box, where string is the text to find in the window, case is a Boolean value indicating whether the find is case sensitive, and direction is a Boolean value indicating whether the find goes in the backward direction (all of the parameters are optional)
23.forward(): Loads the next page in the window
24.handleEvent(event): Invokes the event handler for the specified event
25.stop(): Stops the windows from loading.

-V.Vadivelan
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

vB 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
Javascript 'Object Expected' error causes and remedies vadivelanshanmugam HTML, CSS and Javascript Coding Techniques 5 11-14-2008 05:05 AM
How to open popup onmouseover and to close the same window onmouseout javascript? bluesky HTML, CSS and Javascript Coding Techniques 3 12-07-2007 06:51 AM
How to pass the value from the child window to parent window in javascript? kingmaker HTML, CSS and Javascript Coding Techniques 1 09-04-2007 03:18 AM
Floating Window Using JavaScript seesamjagan HTML, CSS and Javascript Coding Techniques 2 08-14-2007 06:53 AM
Javascript Document Object Jeyaseelansarc HTML, CSS and Javascript Coding Techniques 0 05-21-2007 07:48 AM


All times are GMT -7. The time now is 01:08 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0