Originally posted by d000hg
View Post
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Collapse
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
- You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
- You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
- If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logging in...
Previously on "javascript links you can't right-click on. Why?"
Collapse
-
What if it doesn't always link to the same place?Originally posted by Bunk View PostIt's poor practice but you still see it a lot. The href attribute of the link should be the URL of the page it links to. Any additional functionality should be added to the event handler for clicking on the link. That way if a user has javascript disabled then they will still be able to click on the link and reach the intended page. This is known as progressive enhancement.
Leave a comment:
-
Why? Rank incompetence.
WBSOriginally posted by Bunk View PostIt's poor practice but you still see it a lot. The href attribute of the link should be the URL of the page it links to. Any additional functionality should be added to the event handler for clicking on the link. That way if a user has javascript disabled then they will still be able to click on the link and reach the intended page. This is known as progressive enhancement.
Leave a comment:
-
It's poor practice but you still see it a lot. The href attribute of the link should be the URL of the page it links to. Any additional functionality should be added to the event handler for clicking on the link. That way if a user has javascript disabled then they will still be able to click on the link and reach the intended page. This is known as progressive enhancement.
Leave a comment:
-
Thread moved. Seemed more sensible for it to be here than general.
Leave a comment:
-
WTS. Javascript: just calls some javascript in the current page (on the client side) which could do a thousand different things, only one of which would be a link to another page. So bookmarking it, for example, makes no sense at all.
Leave a comment:
-
In many cases, a link doesn't reload a whole page but gets some more data from a web-service which is used to update the page. The idea of web 2.0 (ugh) is that you don't get full page reloads, but the page looks like a proper application rather than a set of pages.Originally posted by RichardCranium View PostNot good enough (the reason, not your answer).
To my simple mind, since the results page was generated by the web server, it should be possible to write code to embed the appropriate links in that results page, rather than embed some code that generates the link. Duh.
Alternatively, where some form of database is at the back end, have the relationship between the data items returned as results and the link to additional information stored together or based upon one another, then the appropriate link can be embedded in the results page.
So, still no excuse.
I don't want to use an 'interactive web application' that poorly represents some of a web site's functionality. I want to use a web site.
However there are cases where they do do a whole page load and you can well argue the developers are being lazy, doing too much in javascript. So maybe the answer to your question is "the developers aren't very good".
Leave a comment:
-
You could try ctrl + left_click instead, although that would probably have the same (non-)effect.Originally posted by RichardCranium View PostI'm sure there's probably a simple answer for this and I'm a numpty for not knowing it, but I need someone to explain to me what that reason is.
Why do some web sites have links that cannot be right-clicked on? They are either javascript:__whatever('xxx') or javascript:() or some such.
They seem to appear most often on web pages where there are a few links I will want to open for future reference, without navigating away from the page I am on. For example, I do a search and the results each come back with one line per result each with a button for more details. Clicking on the button navigates away from the search results page and it is not possible to <right-click> on the button to select 'open in another tab/window'. ...
One of my web bugbears is sites that prevent use of the back button, either accidently (one assumes) by a redirect without delay or by somehow deliberately intercepting the back button. It's an example of incompetent and/or aggressively coercive style that you'd think companies would realize by now simply drives customers away.
Leave a comment:
-
Not good enough (the reason, not your answer).Originally posted by d000hg View PostMost likely they are not links worked as links, but links which have some arbitrary code attached to them, activated when clicked. So you can't open in a new tab because there is no URL to open.
To my simple mind, since the results page was generated by the web server, it should be possible to write code to embed the appropriate links in that results page, rather than embed some code that generates the link. Duh.
Alternatively, where some form of database is at the back end, have the relationship between the data items returned as results and the link to additional information stored together or based upon one another, then the appropriate link can be embedded in the results page.
So, still no excuse.
I don't want to use an 'interactive web application' that poorly represents some of a web site's functionality. I want to use a web site.
Leave a comment:
-
And while we're at it companys need to realise that they don't endear themselves to me when they 'cut' the back breadcrumb trail to the previous page. When I notice this I immediately stop using that site, there are plenty of others that won't treat me with contempt.
(Although that sort of thing happens less these days...)
Leave a comment:
-
Most likely they are not links worked as links, but links which have some arbitrary code attached to them, activated when clicked. So you can't open in a new tab because there is no URL to open.
Nick will probably give a better explanation. But yes it annoys me too.
Leave a comment:
-
javascript links you can't right-click on. Why?
I'm sure there's probably a simple answer for this and I'm a numpty for not knowing it, but I need someone to explain to me what that reason is.
Why do some web sites have links that cannot be right-clicked on? They are either javascript:__whatever('xxx') or javascript:() or some such.
They seem to appear most often on web pages where there are a few links I will want to open for future reference, without navigating away from the page I am on. For example, I do a search and the results each come back with one line per result each with a button for more details. Clicking on the button navigates away from the search results page and it is not possible to <right-click> on the button to select 'open in another tab/window'.
When it happens on job sites, or employer's vacancy lists, or on-line shopping sites, it is really annoying. Because clicking on the button then takes you into a process (filling in an application form, selecting colour/size/qty, etc.) one is taken a long way from the original list and so the search results are lost. I am then unlikely to take full advantage of what the site is there for.
Basically, I want to be able to keep the search results page open all day and pick and choose off the results at my leisure. Preventing this seems to me to be working against the principle of how the WWW is supposed to work.
Why are web sites designed this way?Tags: None
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Why PAYE overcharging by HMRC is every contractor’s problem Today 06:26
- Government unveils ‘Umbrella Company Regulations consultation’ Yesterday 05:55
- JSL rules ‘are HMRC’s way to make contractor umbrella company clients give a sh*t where their money goes’ Feb 8 07:42
- Contractors warned over HMRC charging £3.5 billion too much Feb 6 03:18
- Statutory Sick Pay (SSP) for umbrella company contractors: an April 2026 explainer Feb 5 07:19
- IR35: IT contractors ‘most concerned about off-payroll working rules’ Feb 4 07:11
- Labour’s near-silence on its employment status shakeup is telling, and disappointing Feb 3 07:47
- Business expenses: What IT contractors can and cannot claim from HMRC Jan 30 08:44
- April’s umbrella PAYE risk: how contractors’ end-clients are prepping Jan 29 05:45
- How EV tax changes of 2025-2028 add up for contractor limited company directors Jan 28 08:11

Leave a comment: