NogDog;10888339 wrote:
PS: Since the "target" attribute is now deprecated in [X]HTML, the generally accepted "best practice" these days seems to be to use JavaScript instead, usually on an "onclick" event in the <a> tag
This leads me to wonder.. if it is discouraged to use 'target' as it is depreciated, what happens in the event the end user has his / her javascript disabled?
I personally simply middle moue click to open links in a new tab (this seems to be universal across all major up to date browsers). But if I'm not mistaken (and I could very well be here), relying on such actions may not work on javascript-onclick-driven links? I do recall having some issues that forced me to simply left-click the link to open it, as using the middle mouse button method didn't work under those circumstances.
Granted, perhaps I'm splitting hairs here in the face of the argument that not many internet users have their javascript disabled (which is probably true). However, as I keep reading in web dev sources... Javascript should 'enhance' features, not be the complete features in and of themselves..
On a side note, does HTML 5 have any new built in alternatives for this? Or is Javascript simply the complete recommended way?