Solved

check if toolbar is visible with javascript for IE and Netscape.

Posted on 2001-07-25
4
375 Views
Last Modified: 2006-11-17
hello

i am trying to check if the toolbar of
the browser is visible or not with javascript..

i have found a page  
(http://developer.netscape.com/viewsource/davis_javascript.html) that explains how to do it in netscape:
==============================================
<SCRIPT LANGUAGE="JavaScript1.2">
if (window.toolbar.visible) {
   document.write('Press the back button to return the previous page.')
}
else {
   document.write('<a href="javascript:history.go(-1)">Click
   here</a> to return to the previous page.');
}
</SCRIPT>
==============================================

the problem is that it doesnt work with internet explorer..

what would be a working solution for both browsers?
any ideas?
0
Comment
Question by:joerg73
  • 2
  • 2
4 Comments
 
LVL 19

Expert Comment

by:webwoman
ID: 6317234
Open a new window with the features you need. Then you KNOW what's there. Only way I can think of.

Or forget the back button, just give them the link. Easier. If they've got the back button (most do), they probably know how to use it. If they don't, I'd be very surprised.
0
 

Author Comment

by:joerg73
ID: 6317583
i NEED to know the scripting syntax
that will also work in internet explorer!

the goal should be a javascript that
checks if the toolbar is there
and then it will redirect to another page and
that page calls a page without toolbar..

hard to explain.. but the webpage is build up this way..

the only thing that is missing is a method
that also works in internet explorer...

0
 
LVL 19

Accepted Solution

by:
webwoman earned 200 total points
ID: 6320782
I doubt there is one. Just open a new window the way you want it.
0
 

Author Comment

by:joerg73
ID: 6344238
hello all,

i have found out that it will not
work with internet explorer, because
there are no functions for that..

what a pity.. otherwise it would be really
easy..



0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question