I have a FORM tag that looks like this:
<form name="form1" id="form1" method="post" action="go.php" >
I can leave off the ACTION attribute and have javascript add it on load,
for example:
<script type="text/javascript">
window.onload = function() {
var frm = document.getEle mentById("score ");
frm.action = "go.php";
frm.submit();
}
</script>
</head>
<body>
<form name="frm" id="frm" method="post">
I tried it and it seems to work but I'm uncertain if it's the "best" way
to add an attribute.
Andrew Poulos
<form name="form1" id="form1" method="post" action="go.php" >
I can leave off the ACTION attribute and have javascript add it on load,
for example:
<script type="text/javascript">
window.onload = function() {
var frm = document.getEle mentById("score ");
frm.action = "go.php";
frm.submit();
}
</script>
</head>
<body>
<form name="frm" id="frm" method="post">
I tried it and it seems to work but I'm uncertain if it's the "best" way
to add an attribute.
Andrew Poulos
Comment