IE Back command?
I have the following code which checks my website for broken links.
it currently get a link, puts it into the listbox, navigates to that link, and tries to find another link and so on.....
Private Sub Command1_Click()
Dim i As Integer
List1.Clear 'clear listbox contents
For i = 0 To IEObj.Document.links.length - 1
The question i have is that for example:
root page = www.mycompany.com
when it finds a page: i.e. www.mycompany.com/aboutus.htm
it will browse to this location but then search throught that page, however i would want it to go back to www.mycompany.com, so my question is:
is there a back command like the back button we have on the IE browser?
Any ideas would be appreciated.
Please post questions to the forums, where others may benefit.
I do not offer free assistance by e-mail. Thank you!
Thanks for your reply Phil, unfortunatly when i tried IEObj.Document.history.go(-1), which i added after the navigate command i keep getting the error: Run time error 438 - object doesnt support this property or method? any ideas?
If your using a WebBrowser control then you can use
This on a ToolBar.
Private Sub Toolbar1_ButtonClick(ByVal Button As ComctlLib.Button)
Select Case Button.key
brwWebBrowser.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DODEFAULT
I've been programming with VB for 15 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
Thanks a lot,
got it working, was missing the command: IEObj.GoBack
Last Post: 04-01-2005, 05:00 PM
By Pablo in forum ASP.NET
Last Post: 02-10-2002, 01:53 PM
By choung in forum VB Classic
Last Post: 11-23-2001, 02:19 PM
By Doug in forum VB Classic
Last Post: 01-27-2001, 09:56 PM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL