Why doesnt document.location not work if placed within a form tag. I am using Netscape 7.1 . If i bring it outside the form tag, It works fine on IE and NS. But if I put it inside the form tag, It uses the form tag's action attribute or if the action attribute is not set for the form, as expected it refreshes the same page.
Here are the two codes that work and the other does not.
-----Works Fine----
<button onClick="document.location='abc.asp'">Click here</button>
<form name="frm1" method="post" action="home.asp">
</form>
-------------------
-----This piece of code does not---------
<form name="frm1" method="post" action="home.asp">
<button onClick="document.location='abc.asp?CatalogID=100098'">Click here</button>
</form>
-------------------
Looks like that Form tag is the only problem.
MD