Solved

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

Posted on 2001-07-25
4
369 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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…

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now