Click here to Skip to main content
15,904,346 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i need help plz help as soon as posible
Posted

1 solution

Why do you need C# code for that, when it can be easily handled using the client-side language of JavaScript? Always try using the easy approach not the hard way of achieving something, C# code won't be as efficient as a JavaScript code that would open a new tab for your website with specified URL in it.

Try the following code in your JavaScript language (write this inside script element of your HTML markup)

JavaScript
window.open("<url>", "<windowname>");


For more on this, please read this MDN document[^].
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900