SVG window.statusbar Property
The SVG window.statusbar property returns the statusbar object through which we can check the visibility.
Syntax:
var sb = window.statusbar
Return value: This property returns the statusbar object.
Example 1:
HTML
<!DOCTYPE html>
< html >
< body >
< center >
< h1 >GeeksforGeeks</ h1 >
< button onclick = "get()" >
Click Here
</ button >
< svg viewBox = "0 0 10000 10000"
< script type = "text/javascript" >
function get() {
var g = document.getElementById("g");
console.log(window.statusbar);
}
</ script >
</ svg >
</ center >
</ body >
</ html >
|
Output:
Example 2:
HTML
<!DOCTYPE html>
< html >
< body >
< center >
< h1 >GeeksforGeeks</ h1 >
< button onclick = "get()" >
Click Here
</ button >
< div id = "g" ></ div >
< svg viewBox = "0 0 1000 1000"
< script type = "text/javascript" >
function get() {
var g = document.getElementById("g");
g.innerHTML = "Is it visible? : "
+ window.statusbar.visible;
}
</ script >
</ svg >
</ center >
</ body >
</ html >
|
Output:
Supported Browsers:
- Google Chrome 1 and above
- Edge 12 and above
- Firefox 1 and above
- Safari 3 and above
- Opera 15 and above
- Internet Explorer not supported
Last Updated :
13 Jun, 2022
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...