|
-
Nov 3rd, 2006, 11:23 AM
#1
Thread Starter
Hyperactive Member
internet explorer
i was given the start of the code to disable the google website from being viewed in internet explorer: (as a test)
VB Code:
Option Explicit
Dim IE As InternetExplorer
Dim shWin As New ShellWindows
Dim strURL As String
Private Sub Form_Load()
For Each iebrowser In shWin
strURL = iebrowser.locationurl
Debug.Print iebrowser.locationurl
Do While InStr(strURL, "Local%20Settings/Temporary%20Internet%20Files") = 46
strHTML = Replace(iebrowser.Document.Body.innerhtml, """", "")
End Sub
If iebrowser.locationurl = "http:\\google.co.uk" Then
MsgBox "no"
-
Nov 3rd, 2006, 11:24 AM
#2
-
Nov 3rd, 2006, 11:51 AM
#3
Thread Starter
Hyperactive Member
Re: internet explorer
oh yea i forgot sorry!
The code dosent work does any one know how to make it stop pages from being loaded, end product will stop violent sites and porn from being accesed, by blocking the url. my test is to block google.
thanks in advance
-
Nov 3rd, 2006, 12:03 PM
#4
-
Nov 3rd, 2006, 12:10 PM
#5
Thread Starter
Hyperactive Member
Re: internet explorer
it is something to do with :
Dim IE As InternetExplorer
-
Nov 3rd, 2006, 12:11 PM
#6
Re: internet explorer
Have you added a reference to the Internet Explorer automation library?
-
Nov 3rd, 2006, 12:17 PM
#7
Thread Starter
Hyperactive Member
Re: internet explorer
no, is that in components, i got given the code and he said it would work
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|