I'm trying to make a popup. The code I pasted below works, but my problem
is, that I want the http://www.mypage.com to open in the same browser
window. So I need something instead of window.open(). Window.location shows
the content of http://www.mypage.com when is called like this inside the
body
<script language="javascript">
window.location = http://www.mypage.com;
</script>
But when it is called in the way presented below, doesn't want to work. I
need to call the function opening the window. I don't want to have the link
in href to prevent some crawlers to follow the link.
<html>
<head>
</head>
<script language="javascript">
function gotoLink(url){
window.open(url,'');
<!-- window.location = url; -->
}
</script>
<body>
<script>
</script>
<a href="javascript:void(0)" onClick="gotoLink('http://www.mypage.com');">
<img src ="ad.jpg" border=no ></a>
</body>
</html>
thanks
Michal