Forum Moderators: phranque
You have to have something else wrong, you got me curious . . . so I did exactly what you said, and get no such error. Are you using full URL's? Relative?
Tested both post and get, neither are causing a security alert. Try installing HTTP Live Headers in FF, might tell you what's up. (?) The error will be in where it's posting to.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Untitled</title>
<script type="text/javascript">
function submitForm (form) {
alert('jussa test');
form.submit();
return false;
}
</script>
</head>
<body>
<form method="post" action="/note_relative/path_to_script.cgi"
id="form2" onSubmit="return submitForm(this);">
<p><label for="text2">Text 2</label>
<input type="text" name="text2" id="text2"></p>
<p><input type="submit" value="Submit Form"></p>
</form>
</body>
</html>