JAVASCRIPT

 Home  Computers & Internet  Web Programming JAVASCRIPT
What is Javascript?
Javascript Placement
Syntax
Reserved Words
Variables
Data Types
Escaping Characters
Concatenation
Arithmetic Operators
Assignment Operators
Comparison Operators
Boolean Operators
Conditional Operator
If Statements
Else If Statements
If Else Statements
Switch Statements
While Loops
For Loops
Do While Loops
Break Statement
Continue Statement
prompt()
alert()
Date()
Event Handlers
String Object Methods
Math Object Methods
Window Object Methods
Arrays

JAVASCRIPT WINDOW home() OBJECT METHOD

Same effect as pressing the home button on a browser ie. it takes the user to the page they set as their home page.

The general format is:

window.home()

Example:

<head>
<script type="text/javascript">
function goHome()
{
window.home();
}
</script>
</head>
<body>
<a href='#' onclick="goHome()">Click Here</a>

See Also:

alert()
Displays an alert box with a message and an OK button.

back()
Enables user to go to previous page in the browser's history list - just like using the browsers back button.

prompt()
Opens up a dialogue box for the user to enter some input.

forward()
Enables user to forward to next page in the browser's history list - just like using the browsers forward button.

blur()
When applied to a window, it removes focus from window ie. moves it behind others.

close()
Closes current or any other specified window.

confirm()
The confirm() Method brings up a dialog box with a message and asks a user to choose either OK or Cancel. Returns true or false respectively.

focus()
The Window focus() Object Method gives focus to a specified window ie. moves it in front of other windows.

home()
Same effect as pressing the home button on a browser ie. it takes the user to the page they set as their home page.

moveBy()
Moves the browser window by a specified horizontal and vertical offset in pixels.

moveTo()
Moves the browser window to a specified x and y coordinates.

print()
Prints out the contents of the current window.

stop()
Produces the same effect as clicking the stop button on your browser.

Home | Privacy Policy | Terms Of Use | Contact Us