vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Open In New Tabs (https://vborg.vbsupport.ru/showthread.php?t=210816)

Stormraven 04-10-2009 03:35 AM

Open In New Tabs
 
I want to open link's in a new window but I have heard that if I use:

<a target=?_blank? href=?http://blahblah.com?>new link</a>

the 'target="_blank"' breaks XHTML strict validation, and i have been told to use this method to stop if from breaking validation, ive been told to use this:

http://www.sitepoint.com/article/sta...liant-world/3/

how and where do i apply that JS code to my site to stop the target=?_blank? from breaking strict validation?

Kind Regards
Stormraven.

Brother Malachi 04-10-2009 05:55 AM

Honestly...using target="_blank" and breaking XHTML strict validation won't kill you ;)
And why are you even using strict? Use Transitional.

Stormraven 04-10-2009 04:34 PM

I am, it also breaks

I'm validating as 'XHTML 1.0 Transitional', it breaks this too when I use target="_blank"

Please help :(

Brother Malachi 04-10-2009 05:03 PM

Try using this: http://www.badlydrawntoy.com/2009/03...-jquery-redux/

but anyway, why are you so keen on validating XHTML. Like I was saying earlier it won't kill you to use _blank

Stormraven 04-10-2009 05:16 PM

I know what the code is, but where does it go in the template? Where do I put the code?

Stormraven 04-11-2009 09:07 PM

Can someone help me please? :'(

Brother Malachi 04-13-2009 06:13 AM

Put the javascript in your root template (such as forumhome)


All times are GMT. The time now is 03:27 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01027 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete