eHow launches Android app: Get the best of eHow on the go.

How To

How to Use the VBScript History Object

Contributor
By eHow Contributing Writer
(0 Ratings)

Return the number of possible items in your history list with the VBScript history object. Use the object to quickly move items in the list backwards or forwards a given number of spaces. These functions help in running queries within databases that are very large. Browse quickly to find any specified number in any of your history listings using VBScript history object or count the number of users that use the back button on your page. This function helps with usability testing on your websites.

Difficulty: Moderately Easy
Instructions
  1. Step 1

    Place each method of "back ()," "forward ()" and "go ()" in the pages HEAD section of its own subroutine. Use "history.back ()" to move items backwards in the list, use "history.forward ()" to move items forward in the list and use "history.go ()" to move to a specified place in the list. Input the specified place into the parenthesis "()" to go to in the list.

  2. Step 2

    Use "history.length" to gather the number of items in your history list. Input "history.go (0)" and "history.forward ()" ending with "history.length" in your page's head section to export the number of items in your history list.

  3. Step 3

    Retrieve the number of times a use hits the back button on an Internet Explorer page. Code the VBScript to start counting after the back button is pressed "back ()," then the page reloads "go ()" and the forward button "forward ()" is pressed again. Ask for "value = 'History Queue' " to retrieve the number of times. Enter "go(-1)" to reload the page before last when the user hits the "back ()" button.

Subscribe

Post a Comment

Post a Comment

Related Ads

  • Have you done this? Click here to let us know.
I Did This
Get Free Internet Newsletters

Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy.   en-US Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.

Demand Media
eHow_eHow Technology and Electronics