Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"[URL unfurl="true"]http://www.w3.org/TR/html4/strict.dtd">[/URL]
<html>
<head>
<title>Anchor Test</title>
</head>
<body>
<div><a id="myAnchor" target="_blank" href="[URL unfurl="true"]http://www.google.com">Google</a></div>[/URL]
</body>
</html>
That Post said:Target isn't deprecated but not defined in HTML 4.01 Strict DTD, XHTML 1.0 Strict DTD and XHTML 1.1 DTD.
Without use of frames target attribute should be disallowed.
You're recommended not to do it.what's the recommended method for opening a new browser window ?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/html4/loose.dtd">[/URL]
<html>
<head>
<title>Test Lightbox Harness</title>
<script type="text/javascript">
/* this function displays the large image in a javascript popup window */
function showImage(_data) {
var myHdl = window.open(_data,'popupwindowname','width=400,height=600');
}
/* this function is run once the page has loaded and attaches the showImage()
function to each <href> inside the <div> with a class of "lightbox" */
function initLightbox() {
var divCollection = document.getElementsByTagName('div');
for (var loop1=0,max1=divCollection.length; loop1 < max1; loop1++) {
if (divCollection[loop1].className.indexOf('lightbox') != -1) {
var hrefCollection = divCollection[loop1].getElementsByTagName('a');
for (var loop2=0, max2=hrefCollection.length; loop2<max2; loop2++) {
hrefCollection[loop2].onclick = function() { showImage(this.href); return false; };
}
}
}
}
window.onload = initLightbox;
</script>
</head>
<body>
<div class="lightbox">
<div>
<a href="images/picture1Big.jpg" target="_blank">
<img src="images/picture1Thumb.jpg" width="150" height="300" alt="Picture description 1" />
</a>
</div>
<div>
<a href="images/picture2Big.jpg" target="_blank">
<img src="images/picture2Thumb.jpg" width="150" height="300" alt="Picture description 2" />
</a>
</div>
<div>
<a href="images/picture2Big.jpg" target="_blank">
<img src="images/picture2Thumb.jpg" width="150" height="300" alt="Picture description 3" />
</a>
</div>
</div>
</body>
</html>
<a onclick="javascript:this.target='_blank'" href="...">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "[URL unfurl="true"]http://www.w3.org/TR/html4/strict.dtd">[/URL]
<head>
<title>Target=_blank in HTML 4.01 Strict</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>
<a onclick="javascript:this.target='_blank'" href="[URL unfurl="true"]http://www.tek-tips.com/">Click[/URL] here</a> to open a new window.
</body>
</html>
<a href="[URL unfurl="true"]www.anothersite.com"[/URL] onclick="window.open(this.href); return false;">Look at this great site in another window!</a>