Click to See Complete Forum and Search --> : javascript for submit


fidanken
09-25-2003, 01:51 PM
Sorry! I don't know english very well.
I have a problem with a form and IFRAME. On the iframe i have a form with some check box and i need to have the submit button out of it.
Is there a way to do this with javascript?

tnks Fidanken

Charles
09-25-2003, 02:03 PM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Content-Script-Type" content="text/javascript">
<title>Example</title>

<style type="text/css">
<!--
label {display:block; margin:1em 0em}
-->
</style>

<form action="">
<div>
<script type="text/javascript">
<!--
document.write('<label><input type="checkbox" onclick="this.form.submit()">Ok</label>')
// -->
</script>
<noscript><button type="submit">Ok</button></noscript>
</div>
</form>