
javascript a confirm
demo:
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> </head> <body> <a href="content.php?action=delete&id=546&cid=230&mid=1" onclick="return confirm('false');">x</a> </body> </html>
1:while i click the link, 2:select the "cancel" this firefox will to visit the page of "content.php" in back .
demo:
<pre><nowiki><!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<a href="content.php?action=delete&id=546&cid=230&mid=1" onclick="return confirm('false');">x</a>
</body>
</html></nowiki></pre>
1:while i click the link,
2:select the "cancel"
this firefox will to visit the page of "content.php" in back .
Modified
All Replies (2)
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> </head> <body> <a href="content.php?action=delete&id=546&cid=230&mid=1" onclick="return confirm('false');">x</a> </body> </html>