javascript form submitting without client intervention


K

klikic

Hi.
My problem:
I need to send to the client page with some text and after a few
seconds the page form has to be submitted without client intervention.
I played with JavaScript "setTimeout()" and "while" methods but
with no luck.
Any suggestions are welcome.
Thanks.
Alan
 
Ad

Advertisements

A

ASM

klikic a écrit :
Hi.
My problem:
I need to send to the client page with some text and after a few
seconds the page form has to be submitted without client intervention.

Take care that a lot of persons have anti-popups ! !
I played with JavaScript "setTimeout()" and "while" methods but
with no luck.
Any suggestions are welcome.

<script type="text/javascript">
function pub() {
foo=window.open('advertising.htm','','width=500,height=300');
}
</script>
<body onload="setTimeout('pub()',1500);">
 
A

ASM

ASM a écrit :
klikic a écrit :

<script type="text/javascript">
function pub() {
document.forms['myForm'].submit();;
}
onload = function() { setTimeout('pub()',1500); }
</script>

<form name="myForm" action=" ... >
 
Ad

Advertisements

K

klikic

Thanks. Thant's it!

ASM je napisao/la:
ASM a écrit :
klikic a écrit :

<script type="text/javascript">
function pub() {
document.forms['myForm'].submit();;
}
onload = function() { setTimeout('pub()',1500); }
</script>

<form name="myForm" action=" ... >
 

Top