1.

Solve : CHALLENGE: Using this XHTML code ONLY, Please help open target in new window!!!?

Answer»

Good morning all! Ready for challenge?

I am struggling with the following code formation...The web platform I am USING MUST use this mouseover code, but I am struggling to find out how to open the link in a new window - that works!?!?! Errors are flying all over the place!


Code: [Select]<table border="0">
<tbody>
<TR>

<td><a onmouseover="this.style.backgroundImage='url(~/media/1A96CA8A35B942E788B46920655A7CEA.ashx?w=184&amp;h=111&amp;as=1)'" title="Beca's history and servies." style="DISPLAY: block; BACKGROUND-IMAGE: url(~/media/CABA6A304EAA4196900D940D236932C6.ashx?w=184&amp;h=111&amp;as=1); WIDTH: 184px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 106px" onmouseout="this.style.backgroundImage='url(~/media/CABA6A304EAA4196900D940D236932C6.ashx?w=184&amp;h=111&amp;as=1)'" href="~/link.aspx?id=F55306662A1F4A4991D22E3B4AF46358&amp;_z=z" ></a></td>

</tr></tbody></table>

Your help with this would be MUCH appreciated!

Many thanks

Your friendly widdowspider.
xUse the target attribute. Unless of course if you're using XHTML Strict, you'll need to use javascript._target="blank"  Quote from: angel2011 on September 25, 2011, 11:34:37 AM
_target="blank" 
No,

Code: [Select]<a href="" target="_blank">
lol misspelling sorry i was asleep :pSorry guys...FORGOT to ADD that the easy solution target="_blank"....doesn't work...or if it does...have no idea where to bung it.Add it to the tag.

Code:
[Select]<a href="whatever" target="_blank">some text</a> <!-- opens link in new window -->


Discussion

No Comment Found