SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: onclick warning doesn't work
-
Jul 6, 2007, 18:45 #1
- Join Date
- Jul 2000
- Location
- Western Massachusetts, USA
- Posts
- 1,389
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
onclick warning doesn't work
This "onclick" funcsion in JavaScript in a link on a .php script is supposed to give me a warning before proceeding to the deletion script, but it doesn't. What am I missing?
PHP Code:<p><a href='admin/users/delete_msgs.php?id=<?php echo($userIDnum);?>' onclick=\"return confirm('Really want to delete this?');\">Delete all messages</a></p>
-
Jul 6, 2007, 19:56 #2
- Join Date
- Aug 2000
- Location
- Philadephia, PA
- Posts
- 20,578
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
Remove the slashes before the double quotes in that link.
Try Improvely, your online marketing dashboard.
→ Conversion tracking, click fraud detection, A/B testing and more
-
Jul 7, 2007, 03:54 #3
- Join Date
- Jul 2000
- Location
- Western Massachusetts, USA
- Posts
- 1,389
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thanks. That did it. Don't know why the slashes were there in the first place.
Bookmarks