Marook-Online
* 07.Feb.2012, 20:26 UTC+1
Welcome, Guest. Please login or register.
Username:
Password:

News: Back again Wink
Main Menu
  Navigation
   Downloads
     Tools
     Music Discs
     SMF Mods
     Trainer & Patches
     EgoShare Uploader
   Guestbook
   NoPaste
   User Map
   Gallery
  
   Malware Scan
   Hacker Blacklist
   Find Abusemail
Top Downloads
Support Me !
Help me by donating a small amount!



Advanced search

Google


Pages: [1]   Go Down
0 Members and 1 Guest are viewing this topic. Topic Tools  
Read
11-Feb-2008 13:03
Marook
Administrator
*****
Offline Offline

Joined: 01-Jan-2005
Posts: 224


In XHTML 1.1, there is no arrtibute target="" anymore but sometimes you want to open a link in a new window. Just as CSS3 is interpreted by all browsers, you can easily do this like this:

Code:
.new {
    target-new: new ! important
}

You can cann this CSS-class like this :

Code:
<a href="http://www.w3.org" class="new">w3.org</a>

Because the releasedate of CSS3 is almost unknown you can use javascript to open a link in a new window and stay XHTML valid.

Code:
<a href="http://www.w3.org" onclick="void(window.open(this.href, '', '')); return false;">w3.org</a>

Furter information about CSS3 you'll find here
« Last Edit: 11-Feb-2008 13:06 by Marook » Logged
 

Pages: [1]   Go Up
Jump to:  

Theme by webtechnica.net

MHD v2.1 © 2oo8 by Marook
32124 hacking attempts defended!