Hello to all,
I am using link like
and I have written JavaScript like:Code:<a href=go_somewheres.htm onClick=doTest() return>Go</a>
When I use this construct, it always go to the next page even if I press any button from the JavaScript pop-up. Can anyone tell me How do I cancel a href in javascript?Code:function doTest(){ return confirm("Click OK button to go to the next page, or click Cancel to stay on this page"); }
Please help me.
Bookmarks