open a new url on button click windows 10 - windows

I am trying to open a link on a button click in windows 10 Universal app. I used web view but it does not seem to work. how to open a url (eg. facebook.com or google.com) on a button click. I am using XAML and C#

Did you try this in Button Click event handler?
await Windows.System.Launcher.LaunchUriAsync(new Uri("uri address"));

Related

I can't click Webbrowser's Mobile Element

I want to click one but I couldn't click it with my standard code. You need to press F12 and select mobile emulator to see this mobile version of website. After then you can click button manually but you can't click it programmatically. I can't use API so I need to do it with web elements.
This is my standard code;
For Each obj1 In WebBrowser1.Document.GetElementsByTagName("div")
If (obj1.GetAttribute("class") = "_o5rm6 coreSpriteCameraInactive") Then
obj1.Click: Exit For
End If
Next
This is the button where I want to click:

Detect user clicked on specific button on mini browser (window phone)

Im on development of window phone application,
Scenario:
Mini browser opening a page(for example google.com)
Google.com has a button called 'Search'
If User clicked button 'Search'
Redirect to an redirect.xaml
Else
Do nothing
Here is my scenario, how can I actually detect the User clicked the button and only they can proceed to the next page? Is that I have to use javascript in this situation? because if on web, this is technique which I will use.
Webbrowser control downloads we content and you have to parse the content or to handle the js actions. Thats the way to do it.

New Browser window in Windows Phone with Phonegap/Jquery Mobile

How to open new Browser window in Windows Phone with Phonegap and Jquery Mobile?
I tried everything i could think of:
link name
With javscript window.open
etc
I can't get it to open in a new window. The problem is when it opens now it its inside the "webview" and when pressing the back button the application closes, it should go back to the prev page. Or it should open in a new window/outside the app (aka internet explorer).
There 2 possible solutions:
A way to open it outside the application
Open it inside but should be able to get back to the prev bage with the back button

Firefox opens standard FB.login popup in a new tab instead of dialog

Using the stock code found here: http://developers.facebook.com/docs/reference/javascript/FB.login/
FB.login is bound to a jquery click event on my button.
On Chrome it opens successfully in a popup.
On Firefox it opens in a new tab.
How do I get the popup back in Firefox?

VB Open Browser Window Forms Application

Windows forms application. How can I open browser window with specific url on click of a button?
In your Click handler use:
System.Diagnostics.Process.Start("http://www.google.com")
That will open a URL in whatever the user's default browser is.

Resources