Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open Webpage through vbscript procedure 1

Status
Not open for further replies.

scantron

Programmer
Jul 4, 2002
27
CA
Hello all,

I am trying to open a URL, in a new window, from a header provedure in vbscript. I can't find any practical code for vbscript. All I can find are functions and ifs and loops, but no command statements to execute withing them. All I need to do is open a new web page.

So:

OpenForm()
Statement
End Sub

So far I have Document.open , [name], [features], [replace] Bu...he 'feautures' and 'replace' fields require.
 
Try this

Set Sh = WScript.CreateObject("WScript.Shell")
Sh.Run "yourwebsite.com", 3

Anyone know how to write to a site after that, say to search for something on a search engine and then go to that page.
Ummm.... go to google, then put something in the search page, then have that page come up? I want to do all this in the background, never really see any of the sites open, just get times on how long it takes for each page to open, but I have to enter criteria to move on and I am not sure how to do that.
 
Did not recognize the WScript. Unrecognized object. Maybe an instance of the class needs to be declared? What class?

I forgot to add that I'm using this vbScript code in the <head> tag of and html plage.
 
Yes this should do great, thanks you. I vbScript isn't used for page navigation and random tasks.

Much appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top