Closed
Bug 148585
Opened 23 years ago
Closed 14 years ago
click() method for links (and other? elements)
Categories
(Core :: DOM: Core & HTML, enhancement)
Tracking
()
RESOLVED
DUPLICATE
of bug 583514
People
(Reporter: frank, Unassigned)
References
Details
The following code doesn't work at all in NS 6.2
<html>
<head>
<script langauge="Javascript">
function go(){
if (document.getElementById) {
adest = document.getElementById('destination');
adest.click();
}
else{
document.anchors[0].click();
}
}
</script>
</head>
<body onload="go();">
<a href="http://www.whatever.com" name="destination" id="destination"></a>
</body>
</html>
Comment 1•23 years ago
|
||
This is really an RFE to implement that method for elements other than the
traditional button/checkbox/radio/etc., similar to what MSIE provides.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: click() method on an A tag doesn't work at all. → [RFE] implement click() method on an A tag (and other? elements)
Well, I'm not so sure. It's a part of the DOM
http://www.mozilla.org/docs/dom/domref/dom_el_ref34.html
and since the <A> is the most basic, clickable HTML element, it really should
be available.
Updated•22 years ago
|
QA Contact: desale → stummala
Updated•22 years ago
|
Severity: normal → enhancement
Summary: [RFE] implement click() method on an A tag (and other? elements) → click() method for links (and other? elements)
Comment 3•22 years ago
|
||
*** Bug 172163 has been marked as a duplicate of this bug. ***
Comment 5•21 years ago
|
||
An a-element should have a click()-method. It's not an enhancement (see earlier
post).
Please change the severity to normal (or higher).
This bug is a year old now.
I encountered this as well, and stupidly threw together a sample HTML page
before searching the bug database first:
http://xaotec.com/bugs/mozilla/missing-click-method.html
oh well... maybe my sample will be of use in tracking it down.
I guess I'll just vote for it and move on.
FYI, all other methods in the spec are available, the only missing one is
'click'... which is really odd, since its been around for the longest time.
Comment 8•20 years ago
|
||
*** Bug 283436 has been marked as a duplicate of this bug. ***
Comment 9•19 years ago
|
||
This is an enhancement, since it is an extension of the dom html spec, see:
http://www.w3.org/TR/2000/WD-DOM-Level-2-HTML-20001113/html.html#ID-48250443
There is no mentioning of a click() method on a HTMLAnchorElement.
Component: DOM: Core → DOM: Core & HTML
QA Contact: stummala → general
Updated•14 years ago
|
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•