CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   XML (http://www.codingforums.com/forumdisplay.php?f=3)
-   -   help with xhtml link targets (http://www.codingforums.com/showthread.php?t=285756)

Ctechinfo 01-14-2013 01:19 PM

help with xhtml link targets
 
I have recently upgraded some of my websited from html 4 to xhtml transitional with the html 4.01 I could use target="_new" in the href's and the link would open in a new window.

Whats the xhtml alternative for this?

Thanks

VIPStephan 01-14-2013 03:29 PM

The alternative is to not force your perception of functionality of a website upon other users. The intention behind removing the target attribute from the specifications (even in (strict) HTML 4, by the way) was that the users should be able to decide for themselves whether or not they want to open links in new windows. If you still want to enforce this you should use JavaScript (hint: window.open()).

Ctechinfo 01-14-2013 05:56 PM

I never looked at it like that. I personally like the idea so when I click a link I don't have to backtrack to the original site.


All times are GMT +1. The time now is 02:42 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.