The largest Interview Solution Library on the web


« Previous | 1 | 2 | 3 | Next »


<html>
<head>
<title></title>
<style type="text/css">
body
{
font-family: Arial;
font-size: 10pt;
}
</style>
</head>
<body>
<script type="text/javascript">
var app = angular.module('MyApp', [])
app.controller('MyController', function ($scope, $window) {
$scope.ShowConfirm = function () {
if ($window.confirm("want to save it")) {
$scope.Message = "You clicked YES.";
} else {
$scope.Message = "You clicked NO.";
}
}
});
</script>
<div ng-app="MyApp" ng-controller="MyController">
<input type="button" value="Show Confirm" ng-click="ShowConfirm()" />
<br />
<br />
<span ng-bind = "Message"></span>
</div>
</body>
</html>
« Previous | 1 | 2 | 3 | Next »


copyright © 2014 - all rights riserved by javatechnologycenter.com