2024-04-29 01:47 BST

View Revisions: Issue #2430

Summary 0002430: onClick in 'a' tag is ignored
Revision 2016-02-21 15:54 by Chris Young
Additional Information The code is:
#
Revision 2016-02-21 15:55 by Chris Young
Additional Information The code is:
<a href="#" onclick="javascript:location.href='http://www.netsurf-browser.org/'">Visit NetSurf homepage</a>
Revision 2016-02-21 15:54 by Chris Young
Steps To Reproduce Visit http://www.unsatisfactorysoftware.co.uk/netsurf/onclick.html
Click on the link, which should redirect to the NetSurf homepage.
(I'm not sure if that Javascript works in NetSurf, but there is nothing in the log to suggest it is even firing the event)
Revision 2016-02-21 18:13 by Chris Young
Steps To Reproduce Visit http://www.unsatisfactorysoftware.co.uk/netsurf/onclick.html
Click on the link, which should redirect to the NetSurf homepage.
(I'm not sure if that Javascript works in NetSurf, but there is nothing in the log to suggest it is even firing the event)
Revision 2016-02-21 18:13 by Chris Young
Additional Information The code is:
<a href="#" onclick="javascript:location.href='http://www.netsurf-browser.org/'">Visit NetSurf homepage</a>

It is my understanding that the onclick should execute, and if it doesn't return false then the usual href kicks in.
Revision 2016-03-07 13:37 by Vincent Sanders
Additional Information The code is:
#

It is my understanding that the onclick should execute, and if it doesn't return false then the usual href kicks in.