Solved

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

Posted on 2001-07-25
4
387 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
arrays and radio buttons 10 46
Can anyone help me find this preloader? 51 66
jquery change div image on page reload using Jquery 9 54
PDF Turn Look 7 32
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 …
In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write 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…
Suggested Courses

737 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