1. A method for automatic retrieval of a target document that links to a starting document having a static address, comprising the steps of: (a) recording at least one control element selected by a user to link from the starting document to the target document; (b) identifying a logical tree for each control element; (c) recording the logical tree identified in step (b); and (d) generating commands represented by the at least one control element to link from the starting document to the target document; wherein one of the control elements represents a dynamic address of the target document.