Home » Javascript

JavaScript - Set Customize Text in Browser Status Bar using JavaScript Function

In this example, we will learn how to set/display text in a status bar of a browser.

window.status is used to set the text on the status bar. Remember Status Bar should be visible, if it is not visible make it visible through View → Toolbars → Status Bar.

JavaScript Code Snippet - Set Customize Text in Browser Status Bar using JavaScript function

JavaScript function

<script type="text/javascript">
	function setStatus(){
		window.status="Example from includehelp.com";
	}
</script>

HTML Source Code with JavaScript

<!--JavaScript - Set Customize Text in Browser's Status Bar using JavaScript Function.-->
<html>
	<head>
		<title>JavaScript - Set Customize Text in Browser's Status Bar using JavaScript Function.</title>
		<script type="text/javascript">
			function setStatus(){
				window.status="Example from includehelp.com";
			}
		</script>
	</head>

	<body onload='setStatus()' style="text-align: center;">
		<h1>JavaScript - Set Customize Text in Browser's Status Bar using JavaScript Function.</h1>
	</body>

</html>

Result

set text on status bar using javascript function





Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.




Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates


© https://www.includehelp.com some rights reserved.