Closed
Bug 270603
Opened 20 years ago
Closed 20 years ago
<button onClick="window.history.back();"> Back </button> - don`t work right
Categories
(SeaMonkey :: General, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: dizit, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 page1.html ->send POST data to page2.html page2.html have <button onClick="window.history.back();"> Back </button> On this button click() browser reload page2.html with symbol "?" at the end of URI Apache access.log: 127.0.0.1 - - [18/Nov/2004:14:09:00 +0200] "GET /page1.html HTTP/1.1" 200 2789 127.0.0.1 - - [18/Nov/2004:15:06:00 +0200] "POST /page2.html HTTP/1.1" 200 2789 127.0.0.1 - - [18/Nov/2004:15:07:43 +0200] "GET /page2.html? HTTP/1.1" 200 2920 Reproducible: Always Steps to Reproduce: 1. 2. 3. Expected Results: show page1.html If <BUTTON> replace by <INPUT type="button"> than it is OK
Comment 1•20 years ago
|
||
A <button> inside a form acts like a submit button in Mozilla. I'm not sure, but I think this is intended behavior. If you want the <button> to behave like a button again, use <button type="button">
Comment 2•20 years ago
|
||
http://www.w3.org/TR/html4/interact/forms.html#h-17.5 "type = submit|button|reset" When no type= is specified for <button> the default is type="submit". Is your <button> on page2.htm in a form?
Updated•20 years ago
|
Product: Browser → Seamonkey
Comment 3•20 years ago
|
||
> symbol "?" at the end of URI
That's when submitting form data. I'm resolving this as INVALID because you need
to declare type="button" otherwise the button will try to submit form data.Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•