Is there a way to open links of a CLASS in a new tab with javascript since most validators consider "target" to be invalid with the "a" element?
Is there a way to open links of a CLASS in a new tab with javascript since most validators consider "target" to be invalid with the "a" element?
Lady Aleena
Mistress of Fantasy's Realm, Lady of the Grey, Bytesaver, wayward daughter of WXity!
I'm learning Perl. I don't have PHP, ASP, and MySQL.
Find me on Twitter.
Hi there Lady_Aleena
you may resolve your problem by using this dtd...
<!DOCTYPE html>
Further reading:-
coothead
Thanks coothead. I have some researching to do it looks like.
Lady Aleena
Mistress of Fantasy's Realm, Lady of the Grey, Bytesaver, wayward daughter of WXity!
I'm learning Perl. I don't have PHP, ASP, and MySQL.
Find me on Twitter.
No problem, you're very welcome.
coothead
Hi Lady A
The way that friend Coot mentions is html5 (and is the way to go), if you wish to use xhtml etc., and want the title attribute address it via script onload:
Code://give the links that you wish to open elsewhere a classname -say - 'external', that way you can pick them out easily and, if you wish, brand them via css as well var lnks = document.links; for ( var i = 0; i < lnks.length;i++) if(lnks[i].className == 'external') lnks[i].target = '_blank';
diades, staying with straight HTML seems the better choice, now if only my validator would validate HTML 5.
Lady Aleena
Mistress of Fantasy's Realm, Lady of the Grey, Bytesaver, wayward daughter of WXity!
I'm learning Perl. I don't have PHP, ASP, and MySQL.
Find me on Twitter.
I agree wholeheartedlystaying with straight HTML seems the better choice![]()
Hi there Lady_Aleena,
This is the validator that I use to validate all dtds which includes HTML5......now if only my validator would validate HTML 5.
coothead
I guess I should have said my Firefox add-on. *blush*
Lady Aleena
Mistress of Fantasy's Realm, Lady of the Grey, Bytesaver, wayward daughter of WXity!
I'm learning Perl. I don't have PHP, ASP, and MySQL.
Find me on Twitter.
Hi there Lady_Aleena,
Well, to be specific, my connection to the...I guess I should have said my Firefox add-on.....
...is via the...
coothead
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks