Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Script to refresh IE to homepage not current page

$
0
0

Hi All,

Firstly thanks for any help on this! I'm very new to scripting, so sorry for any errors.

I need to create a local script to make IE refresh to the homepage, rather than the current page.

The script I use was actually from this forum, could this be altered so it reloads to the page "objExplorer.Navigate" webpage

Thank you

M

-------------------------------------------------------------

On Error Resume Next

Set objExplorer = CreateObject("InternetExplorer.Application")

objExplorer.Navigate "website"   
objExplorer.Visible = 1

Wscript.Sleep 5000

Set objDoc = objExplorer.Document

Do While True
    Wscript.Sleep 30000    
    objDoc.Location.Reload(True)
    If Err <> 0 Then
        Wscript.Quit
    End If
Loop




Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>