c# open website in browser code example
Example 1: how to open a website in c
#include <stdio.h>
#include <stdlib.h>
int main()
{
system("START www.your_website.com");
}
Example 2: code to launch browser using javascript
JavascriptContext.addJavascriptCall(FacesContext.getCurrentInstance(),
"window.open('printerFriendly.html','Print',,'width=300','height=200','menubar=yes',
'status=yes','location=yes','toolbar=yes','scrollbars=yes')");