|
-
Jan 16th, 2007, 03:52 PM
#1
Thread Starter
Addicted Member
Execute URL!
Hello,
I have 3 URLs I need to execute in script!
Previously I have used response.redirect method where only 1 URL needed executin, but now there is 3 it wont be possible.
How can I execute 3 URL's (in any order, no consecuvation required) in VB code?
Thanks
-
Jan 16th, 2007, 08:34 PM
#2
Fanatic Member
Re: Execute URL!
VB Code:
System.Diagnostics.Process.Start("http://www.vbforums.com/showthread.php?t=447650")
-
Jan 17th, 2007, 10:22 AM
#3
Re: Execute URL!
You'll have to open new window for each url... And it must be done on the client side...
You simply do Response.Write(yourscript) then the client browser will execute the script when it receives the response. Somthing like this:
VB Code:
Dim URLs() As String = {"http://www.google.com", _
"http://www.yahoo.com", _
"http://www.msn.com"}
Dim jscript As String = "<script type='text/javascript'>"
For Each url As String In URLs
jscript &= "window.open('" & url & "');"
Next
jscript &= "</script>"
Response.Write(jscript)
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
|