VB-Nerd
09-11-2003, 12:42 PM
Inside my Application I have using Microsoft WebBrowser component to display HTML pages specific to my application. I have HTML links in the to other related topics. ie..<a Href="somelocation...">Other link</a> so my users can look up topics inside my application.
I load the initial page with this command, and it displays links to all of the topics i think the user might want.
WebBrowser1.Document.Body.innerHTML = "bla bla bla some HTML Document."
The initial page never has a Back link on it.
Inside my pages i'm executing the HTML as shown Below...
"bla bla bla some HTML Document."
....
<br>
<P align=right><A href="javascript:history.back()">Back</a></FONT></P>
The problem is that I sometimes get an Error page displayed when pressing the Back button/link it's about 50% of the time.
It seems that when I execute the code fragment again on another page then press the Back link I don't get the error.
WebBrowser1.Document.Body.innerHTML = "bla bla bla some HTML Document."
I do get the Error if I load the Document, Follow multiple links then press the back button.
Any ideas/samples would help.
I load the initial page with this command, and it displays links to all of the topics i think the user might want.
WebBrowser1.Document.Body.innerHTML = "bla bla bla some HTML Document."
The initial page never has a Back link on it.
Inside my pages i'm executing the HTML as shown Below...
"bla bla bla some HTML Document."
....
<br>
<P align=right><A href="javascript:history.back()">Back</a></FONT></P>
The problem is that I sometimes get an Error page displayed when pressing the Back button/link it's about 50% of the time.
It seems that when I execute the code fragment again on another page then press the Back link I don't get the error.
WebBrowser1.Document.Body.innerHTML = "bla bla bla some HTML Document."
I do get the Error if I load the Document, Follow multiple links then press the back button.
Any ideas/samples would help.