Add this to the top of your page:
<script language="javascript" type="text/javascript">
<!--
function popitup(url) {
newwindow=window.open(url,'name','height=200,width=150');
if (window.focus) {newwindow.focus()}
return false;
}
// -->
</script>
Link to it with the url:
<a href="popupex.html" onclick="return popitup('popupex.html')">Link to popup</a>
This is my code
_______________________________
<script language="javascript" type="text/javascript">
<!--
function popitup(url) {
newwindow=window.open(url,'name','height=200,width =150');
if (window.focus) {newwindow.focus()}
return false;
}
<a href="first.htm" onclick="return popitup('second.html')">Link to popup</a>
// -->
</script>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<a href="second.html">fggddsgsd</a></body>
</html>
__________________________________
what am I doing wrong?