Jquery

Jquery Display Different Browser Tabs Script

when users pass to different tabs, title will chage.

 

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Hoşgeldiniz...</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script type="text/javascript">
$(function() {
var pageTitle = $("title").text();
$(window).blur(function() {
$("title").text("Yazılım Bilişim Come back...");
});
$(window).focus(function() {
$("title").text(pageTitle);
});
});
</script>
</head>
<body>
Birşeyler
</body>
</html>

 

This code  is used to change the site title when users pass to different tabs.

Yorum Yap