Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

target attribute replacement in XHTML

Status
Not open for further replies.

saroy71

Programmer
May 16, 2002
22
0
0
CA
The target attribute in the <a> tag is no longer accepted in strict XHTML. Does anyone know how to tell a link to open in a different window? Also, how would I size this new window and make sure it doesn't have a scroll bar or toolbars when it opens? It's just for showing an enlarged picture from a thumbnail.

Thanks in advance. Education is what you get from reading the small print.
Experience is what you get from not reading it.
 
use javascript something like

function openwindow()
{
window.open(&quot;URL&quot;,&quot;NAME&quot;,&quot;toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=1000,height=700,top=0,left=0&quot;)
}

<a href=&quot;#&quot; onclick=&quot;openwindow()&quot;>

it should do the trick Don't take life to serious,
it isn't permanent, -LordSlayer

 
It isn't completely gone. They have kept the target attribute as part of modular XHTML:


Not really sure how you might implement this but if you are bothered to use XHTML-Strict, then you might be bothered to find out more about this modularisation stuff.

Sorry not to be more help than this.

Dunx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top