Closed GoogleCodeExporter closed 9 years ago
This is not an issue to do with SWFObject , but how you have set up your link.
Please
submit authoring questions to the list before posting a "bug"
Have read from a google search on how to invoke JS functions without the
browser
thinking it should be navigating somewhere.
Basically you want something like:
<a href="#" onclick="aFunction();return false;">
Original comment by aran.rhee@gmail.com
on 6 Jan 2010 at 10:58
Thanks. Found this this morning before I read your comments - so to add a bit
more
detail/explanation - from:http://codingforums.com/showthread.php?t=56428
As I tested it in Firefox, I found out that <button>'s default behavior is a
submit
button (unlike in IE). So you have to do a return false to cancel form
submission...
<button onclick="testbutton(); return false;">Find!</button>
or:
<button onclick="return testbutton();">Find!</button>
and then put return false at the end of the function.
Original comment by Howie.Ch...@gmail.com
on 6 Jan 2010 at 3:25
Original issue reported on code.google.com by
Howie.Ch...@gmail.com
on 29 Dec 2009 at 11:48