Click here to Skip to main content
15,887,746 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: Question Pin
Keith Barrow8-Jan-13 1:30
professionalKeith Barrow8-Jan-13 1:30 
QuestionSharepoint - Aggregate lists with JavaScript Pin
garfield1853-Jan-13 3:38
garfield1853-Jan-13 3:38 
QuestionBrowser Back Button Pin
tiger1463-Jan-13 1:58
tiger1463-Jan-13 1:58 
AnswerRe: Browser Back Button Pin
Keith Barrow3-Jan-13 3:03
professionalKeith Barrow3-Jan-13 3:03 
GeneralRe: Browser Back Button Pin
tiger1467-Jan-13 23:19
tiger1467-Jan-13 23:19 
GeneralRe: Browser Back Button Pin
Keith Barrow8-Jan-13 1:41
professionalKeith Barrow8-Jan-13 1:41 
AnswerRe: Browser Back Button Pin
Sandeep Mewara4-Jan-13 2:55
mveSandeep Mewara4-Jan-13 2:55 
AnswerRe: Browser Back Button Pin
twseitex8-Jan-13 6:56
twseitex8-Jan-13 6:56 
history Object Internet Explorer
---------------------------------

Contains information about the URLs visited by the client.


Attributes/Properties

Show:
Attributes/Properties
Methods
Method Description
back Loads a previous URL from the History list.
forward Loads the next URL from the History list.
go Loads a URL from the History list.

Property Description
length Retrieves the number of elements in the History list.


For security reasons, the history object does not expose the actual URLs in the browser history. It does allow navigation through the browser history by exposing the back, forward, and go methods. A particular document in the browser history can be identified as an index relative to the current page. For example, specifying -1 as a parameter for the go method is the equivalent of clicking the Back button.

back Method Internet Development Index

--------------------------------------------------------------------------------

Loads a previous URL from the History list.

Syntax

history.back( [iDistance])
Parameters

iDistance Optional. Integer that specifies the number of URLs to go back. If no value is provided, the previous URL is loaded.

Return Value

No return value.

Remarks

This method performs the same action as a user clicking the Back button in the browser.

The back method works the same as history.go(-1).

An error does not occur if the user tries to go beyond the beginning of the history. Instead, the user remains at the current page.

Standards Information

There is no public standard that applies to this method.



forward Method Internet Development Index

--------------------------------------------------------------------------------

Loads the next URL from the History list.

Syntax

history.forward()
Return Value

No return value.

Remarks

This method performs the same action as when a user clicks the Forward button in the browser. Calling the forward method works the same as calling the go method with a parameter of 1. An error does not occur if the user tries to go beyond the end of the history. Instead, the user remains at the current page.


go Method Internet Development Index

--------------------------------------------------------------------------------

Loads a URL from the History list.

Syntax

history.go(vLocation)
Parameters

vLocation Required. Variant that specifies an integer or a string. An integer indicates the relative position of a URL in the History list. A string indicates an exact URL in the History list.

Return Value

No return value.

Remarks

An error does not occur if the user tries to go beyond the beginning or end of the history. Instead, the user remains at the current page
AnswerRe: Browser Back Button Pin
Anjum.Rizwi15-Jan-13 21:20
professionalAnjum.Rizwi15-Jan-13 21:20 
AnswerRe: Browser Back Button Pin
vinodkumarnie18-Jan-13 22:33
vinodkumarnie18-Jan-13 22:33 
AnswerRe: Browser Back Button Pin
Deepak Kr17-Feb-13 22:26
Deepak Kr17-Feb-13 22:26 
Generalhow can we set random image in my asp website? Pin
GDdixit31-Dec-12 5:43
GDdixit31-Dec-12 5:43 
AnswerRe: how can we set random image in my asp website? Pin
Sandeep Mewara4-Jan-13 2:59
mveSandeep Mewara4-Jan-13 2:59 
GeneralRe: how can we set random image in my asp website? Pin
GDdixit22-Jan-13 0:52
GDdixit22-Jan-13 0:52 
GeneralRe: how can we set random image in my asp website? Pin
Sandeep Mewara22-Jan-13 2:34
mveSandeep Mewara22-Jan-13 2:34 
Questiongenerate random numbers from specific array Pin
aeman29-Dec-12 22:16
aeman29-Dec-12 22:16 
AnswerRe: generate random numbers from specific array Pin
Sandeep Mewara4-Jan-13 3:06
mveSandeep Mewara4-Jan-13 3:06 
AnswerRe: generate random numbers from specific array Pin
Joe DiNatale4-Jan-13 9:28
Joe DiNatale4-Jan-13 9:28 
AnswerRe: generate random numbers from specific array Pin
John Y.19-Feb-13 5:47
John Y.19-Feb-13 5:47 
Questionaccess info popup page Pin
apadana_198928-Dec-12 6:58
apadana_198928-Dec-12 6:58 
AnswerRe: access info popup page Pin
Sandeep Mewara4-Jan-13 3:13
mveSandeep Mewara4-Jan-13 3:13 
AnswerRe: access info popup page Pin
vinodkumarnie18-Jan-13 22:56
vinodkumarnie18-Jan-13 22:56 
Questioncontrol other page Pin
apadana_198928-Dec-12 6:50
apadana_198928-Dec-12 6:50 
AnswerRe: control other page Pin
aeman29-Dec-12 22:34
aeman29-Dec-12 22:34 
AnswerRe: control other page Pin
jkirkerx31-Dec-12 10:34
professionaljkirkerx31-Dec-12 10:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.