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
 
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=" ... >
 
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=" ... >
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top