I have a silverlight application. This contains a "preview" button. Button code is as follows:
private void btn_Preview(object sender, RoutedEventArgs e)
{
HtmlPage.Window.Navigate(new Uri("http://www.google.com"),"_blank");
}
When I clicking the button in firefox, a new page is created in a new tab. When I click again, another new page is created in another new tab. When i click 10 times, 10 tabs are created.
I want that If my target page already opened, don't create new tab. only refresh previous tab.
Same as google blogger Preview
button of "edit html" section
I want do it from silverlight 4 or javascript
Is it possible?