如何使用Jquery或Javascript关闭我当前的浏览器窗口 [英] How I Can Close My Current browser Window Using Jquery or Javascript

查看:80
本文介绍了如何使用Jquery或Javascript关闭我当前的浏览器窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

$(document).ready(function () {
       var progressbar = $('#progress_bar');
       max = progressbar.attr('max');
       time = (10000 / max) * 5;
       value = progressbar.val();

       var loading = function () {
           value += 1;
           addValue = progressbar.val(value);

           $('.progress-value').html(value + '%');
           var $ppc = $('.progress-pie-chart'),
           deg = 360 * value / 100;
           if (value > 50) {
               $ppc.addClass('gt-50');
           }

           $('.ppc-progress-fill').css('transform', 'rotate(' + deg + 'deg)');
           $('.ppc-percents span').html(value + '%');

           if (value == max) {
            //   alert('It is over,Now Your session has Been Expire.Please Retry to completed this Process With in Time.');
               //window.location("http://www.bing.in");
               window.close();
               clearInterval(animate);

           }
       };

       var animate = setInterval(function () {
           loading();
       }, time);
   });

推荐答案

document )。ready( function (){
var progressbar =
(document).ready(function () { var progressbar =


(< span class =code-string>' #progress_bar');
max = progressbar.attr(' max');
time =( 10000 / max )* 5 ;
value = progressbar.val();

var loading = 功能(){
value + = 1 ;
addValue = progressbar.val(value);
('#progress_bar'); max = progressbar.attr('max'); time = (10000 / max) * 5; value = progressbar.val(); var loading = function () { value += 1; addValue = progressbar.val(value);


' 。progress-value ')。html(值+ ' );
var
('.progress-value').html(value + '%'); var


这篇关于如何使用Jquery或Javascript关闭我当前的浏览器窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆