PDA

View Full Version : How to prevent new window to open?


kippie
03-08-2003, 07:49 PM
In the HTML below the user is automatically referred to another website in a new window. How can I change it so that the new website is opened in the same window?

This is the HTML:

<html>
<head>
</head>
<body>
<script><!--
function openWin(url) {
popup = window.open(url,"popup");
}
setTimeout("openWin('http://www.yahoo.com', 'myWin', 'toolbar,status,resizable,scrollbars,width=650,height=500, left=125,top=100')",10);
// -->
</script>
</body>
</html>

Kippie

COBOLdinosaur
03-08-2003, 09:20 PM
popup = location.href=url;

kippie
03-08-2003, 10:14 PM
Thanks Cobol

Kippie