window.open ; focus, self
Posted: Wed Feb 07, 2007 9:28 am
I am trying to open a new window when someone comes the my site
but i have to check if that window is oppend before i oppen it.
and is there any way to keep the focus on the curent page
thanks
Code: Select all
<head>
<script>
function onLoad() {
// if (!window.survey.is not oppend allready) {
window.open("survey.asp", 'survey');
window.focus('self')// not working
//}
return true;
}
</script>
</head>
<body onLoad="onLoad()">and is there any way to keep the focus on the curent page
thanks