Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 405
  • Last Modified:

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

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
joerg73
Asked:
joerg73
  • 2
  • 2
1 Solution
 
webwomanCommented:
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
 
joerg73Author Commented:
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
 
webwomanCommented:
I doubt there is one. Just open a new window the way you want it.
0
 
joerg73Author Commented:
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

Technology Partners: 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!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now