I’ve set up a script on initialization of a page to change the browser preferences in the user’s current location document to “Notes with Internet Explorer”, using the following code:
Dim ns As New NotesSession
Dim db As New NotesDatabase("", "Names.nsf")
Dim v As Notesview
Dim doc As NotesDocument
Set v = db.Getview("Locations")
Set doc = v.getfirstdocument
While (doc Is Nothing) = False
doc.WebRetriever = "3"
Call doc.Save(True, False)
Set doc = v.GetNextDocument(doc)
Wend
Is there a way to change the preferences back to the way they were on termination of the page? In other words, is there a way to store the “doc.webretriever” property in a variable on initialization and retrieve that property upon termination, then rerun the script above substituting “doc.webretriever = 3” with “doc.webretriever = storedvariable” ?
Thanks