Bug 17570 - Javascript bug: onClick event used with return values doesn't work properly
Summary: Javascript bug: onClick event used with return values doesn't work properly
Status: CLOSED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: 1.9.8
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-12-22 13:18 UTC by Teemu
Modified: 2002-09-16 14:43 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Teemu 2000-12-22 13:09:41 UTC
(*** This bug was imported into bugs.kde.org ***)

Package: konqueror
Version: 1.9.8 (KDE 2.0)
Severity: normal
Compiler: gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
OS: Linux 2.2.16-22smp i686 (Red Hat Linux )

Konqueror doesn't cancel the link when using a link like this below:

<a href="myscript.cgi?function=del" onClick="return confirm('Do you really want to format your HD?');">FORMAT</a>

Even if the user selects the cancel button konqueror still formats the HD.
Comment 1 David Faure 2001-01-13 22:34:55 UTC
On Friday 22 December 2000 13:09 Teemu wrote:
> Package: konqueror
> Version: 1.9.8 (KDE 2.0)
> Severity: normal
> Compiler: gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
> OS: Linux 2.2.16-22smp i686 (Red Hat Linux )
>=20
> Konqueror doesn't cancel the link when using a link like this below:
>=20
> <a href=3D"myscript.cgi?function=3Ddel" onClick=3D"return confirm('Do you=
 really want to format your HD?');">FORMAT</a>
>=20
> Even if the user selects the cancel button konqueror still formats the H=
D.

Fixed in current CVS - although it doesn't allow remove scripts to format y=
our HD :)
The onClick returns false issue is fixed.

--=20
David FAURE david@mandrakesoft.com faure@kde.org
http://www.mandrakesoft.com/~david/ http://www.konqueror.org/
KDE Making The Future of Computing Available Today