?
Solved

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

Posted on 2001-07-25
4
Medium Priority
?
397 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 400 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 does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
This article discusses how to create an extensible mechanism for linked drop downs.
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

752 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