By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
462,945 Members | 450 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 462,945 IT Pros & Developers. It's quick & easy.

incorporating browser detect into an onclick link

P: 2
Hello, I have a number of links opening in a fixed window that certain users cannot access because they are on netscape 4.6 (I think this can handle the links and it is actually their ancient computers which cannot, but either way they are all on netscape), the current onclick command looks like this:

Expand|Select|Wrap|Line Numbers
  1. <A onclick="wopen('page url', 'popup', 670, 395); return false;" href="page url" target=popup>
  3. which activates this script:
  5. <SCRIPT>
  6. <!--
  7. function wopen(url, name, w, h)
  8. {
  9. w += 32;
  10. h += 108;
  11. var win =,
  12. name, 
  13. 'width=' + w + ', height=' + h + ', ' +
  14. 'location=no, menubar=no, ' +
  15. 'status=no, toolbar=no, scrollbars=no, resizable=no');
  16. win.resizeTo(w, h);
  17. win.focus();
  18. }
  20. // -->
  21. </SCRIPT>
I want to make this link detect if a user is on netscape 4.6 and redirect them to a different url if they are, or continue to the normal link if not.

Can anybody help me out?
Feb 15 '08 #1
Share this Question
Share on Google+
3 Replies

Expert Mod 15k+
P: 16,027
I can't see why the code shouldn't work, but seriously who uses Netscape 4.6 nowadays? Is it not possible for them to upgrade?

What happens on their browser? Do they see errors?
Feb 16 '08 #2

P: 2
The code does work on the browser - it is the machines that cannot handle the link that it opens so I want to auto-redirect them to a simpler, static HTML page instead.

It is 800 poor call centre employees that are stuck on PC's from the land that time forgot.
Feb 21 '08 #3

Expert Mod 15k+
P: 16,027
You don't really want to detect the browser, you want to detect the slow machine.

You could start a timer when the initial page starts loading until it has loaded. If it takes too long, use the simple link, otherwise link to the normal URL.
Feb 22 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.