target=_blank doesn't work. I have even tried "_parent" and "_top". I will put the code here to know what I mean.
index.html:
CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Semi Transparent Player</title>
</head>
<body>
<div>
<iframe name="FRAME1" target="_blank" src="contact.html" width="730" height="260" frameborder="1" ></iframe>
<p>INDEX PAGE</p>
</div>
</body>
</html>
contact.html:
CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ST Player: Contact</title>
</head>
<body><div>
<p><a href="index.html">A Link inside iframe. Make me open in a new window.</a></p>
</div>
</body>
</html>
I want to make the link inside the iframe to open in a new window. I don't want to manually add target=_blank to each of the links. So I want to know if there is some code which can automatically make all the links to open in new window. May be some javascript code does that?
Thanks for the help.
Comment/Reply (w/o sign-up)