473,414 Members | 1,775 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

incorporating browser detect into an onclick link

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>
  2.  
  3. which activates this script:
  4.  
  5. <SCRIPT>
  6. <!--
  7. function wopen(url, name, w, h)
  8. {
  9. w += 32;
  10. h += 108;
  11. var win = window.open(url,
  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. }
  19.  
  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
3 1651
acoder
16,027 Expert Mod 8TB
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
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
acoder
16,027 Expert Mod 8TB
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

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

Similar topics

2
by: Simon Wigzell | last post by:
I'm using onclick in a link. I would like the page not to go back to the top when I click on the link. I'm using : <a onclick="popEditor()" href="#">Editor</a> This takes the page up top...
1
by: Mat | last post by:
How can I detect when a link has been clicked but the new page is still in the process of loading? The document.location.href property still displays the current location (understandably) not the...
13
by: AMC | last post by:
Hi, I have the below code in an asp page. When I run this page in IE or Opera it correctly displays the header info and does not redirect me to 'test.html'. However, when I run this in Netscape...
17
by: lawrence | last post by:
How is it possible that the question "How do I detect which browser the user has" is missing from this FAQ: http://www.faqts.com/knowledge_base/index.phtml/fid/125 and is only here on this...
6
by: hemant.singh | last post by:
Hi all, I am trying to get a way by which I'll know exactly when user goes out of my site by clicking on close button in browser, So that w/e user click close button in browser, I can send a...
15
by: bvdb | last post by:
Hello, my web-application uses two frames, one with a list of database records, one with a record detail view. From the detail view there is "mark" function that will mark the respective record in...
1
by: Anil G | last post by:
Hi! If page has the link, let say page has following hyperlink <a href="javascript:editUser('<c:out value="${users.id}"/>')"><c:out value="${users.username}"/></a> Now, on web browser, bottom...
4
by: m4ttyh2007 | last post by:
I figured i could easily solve my problem if i used a detectin script so a differant CSS could be used for each browser. So i found this: <!-- CSS Browser Detect BEGIN --> <script...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.