View Single Post
  #4 (permalink)  
Old September 28th, 2012, 11:45 AM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

It's still pretty unclear what you're trying to accomplish. For example, what do you mean with:

Quote:
an application that will automatically launch a website
Are you trying to open another web site from your application (which I assume is also a web application)? If so, a simple href would do the trick:

<a href=http://othersite.com/" target="_blank">Open other site</a>

If the newly opened window is on a different domain, you cannot use JavaScript to simulate a click on that site; that would be a major security risk.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!