<! DOCTYPE html> <meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/> <meta charset= "Utf-8"/> <title>HereMyAm.Windows</title> <!--WinJS Citation-- <link href= "//microsoft.winjs.2.0/css/ui-dark.css" rel= "stylesheet"/> <script src= "//microsoft.winjs.2.0/js/base.js" ></script> <script src= "//microsoft.winjs.2.0/js/ui.js" ></script> <!--heremyam.windows Citation-- <link href= "/css/default.css" rel= "stylesheet"/> <script src= "/js/default.js" ></script> <script type= "Text/javascript" > function Navgatetoblogs (uritolaunch) { Create a URI object from a URI string var uri = new Windows.Foundation.Uri (uritolaunch); Windows.System.Launcher.launchUriAsync (URI). Then ( Function (Success) { if (success) { New Windows.UI.Popups.MessageDialog ("Okay"). Showasync (); } else { URI Launch failed } }); } </script> <body class= "Phone" > <p>hello world</p> <input type= "text" id= "url" value= "http://haoliansheng.cnblogs.com"/> <button onclick= "Navgatetoblogs (url.value)" >Open</button> <div id= "rating" data-win-control= "WinJS.UI.Rating" ></div> </body> |