051058
Technical User
- Nov 17, 2008
- 2
I have this script to popup a form on my page.
When clicked (and reclicked) from the same page, it works fine. But when the same link is clicked from another page the popupform is reloaded and what has been written is all gone. How can I avoid the reload and just bring the window in focus again when the formlink is clicked from another page? See it in function
...
<script type="text/javascript">
//<![CDATA[
function pop() {
if (!foo)
foo=window.open('boks.htm','win4','width=700,height=460,top=11,left=300,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
else foo.focus();
}
var foo=null; function focusfoo(){if (foo&&!foo.closed) foo.focus();}
function blurfoo(){ if (foo&&!foo.closed) foo.blur();}
//]]></script>
<a href="boks.htm" target="boks"
onclick="pop();return false" onMouseOver="focusfoo()";>Stil spørgsmål til os.</a>
.......
Thanks Karsten
When clicked (and reclicked) from the same page, it works fine. But when the same link is clicked from another page the popupform is reloaded and what has been written is all gone. How can I avoid the reload and just bring the window in focus again when the formlink is clicked from another page? See it in function
...
<script type="text/javascript">
//<![CDATA[
function pop() {
if (!foo)
foo=window.open('boks.htm','win4','width=700,height=460,top=11,left=300,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
else foo.focus();
}
var foo=null; function focusfoo(){if (foo&&!foo.closed) foo.focus();}
function blurfoo(){ if (foo&&!foo.closed) foo.blur();}
//]]></script>
<a href="boks.htm" target="boks"
onclick="pop();return false" onMouseOver="focusfoo()";>Stil spørgsmål til os.</a>
.......
Thanks Karsten