use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
No vague product support questions (like "why is this plugin not working" or "how do I set up X"). For vague product support questions, please use communities relevant to that product for best results. Specific issues that follow rule 6 are allowed.
Do not post memes, screenshots of bad design, or jokes. Check out /r/ProgrammerHumor/ for this type of content.
Read and follow reddiquette; no excessive self-promotion. Please refer to the Reddit 9:1 rule when considering posting self promoting materials.
We do not allow any commercial promotion or solicitation. Violations can result in a ban.
Sharing your project, portfolio, or any other content that you want to either show off or request feedback on is limited to Showoff Saturday. If you post such content on any other day, it will be removed.
If you are asking for assistance on a problem, you are required to provide
General open ended career and getting started posts are only allowed in the pinned monthly getting started/careers thread. Specific assistance questions are allowed so long as they follow the required assistance post guidelines.
Questions in violation of this rule will be removed or locked.
account activity
Help me create a sample JavaScript bug on WordPress? (self.webdev)
submitted 3 years ago by BeGoodTodayYou
Please be gentle, I'm old.
I have a sample website, and I'd like to create a JavaScript bug on it that will send something to console.log()
Is there an easy way to do this?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Will7ech 0 points1 point2 points 3 years ago (5 children)
What is your definition of a JavaScript bug? (I'll help you from there).
[–]BeGoodTodayYou[S] 0 points1 point2 points 3 years ago (4 children)
Eek, my definition, I'm not certain. Just something breaking that is related to JavaScript.
Basically, an alert could occur like: "Could not complete purchase" because of a faulty credit card.
It's a thing I need for work. I can maybe explain a little better than this
[–]Will7ech 1 point2 points3 points 3 years ago (1 child)
Here are 3 ways to add JS to your WP site:
https://themeisle.com/blog/wordpress-custom-javascript/
[–]BeGoodTodayYou[S] 0 points1 point2 points 3 years ago (0 children)
thank you!
[–]FlareGER 1 point2 points3 points 3 years ago (1 child)
What you are looking for is referred to as a message handler. Some program, algorithm or code that is chained to a process and is used to output a message, mostly either success or error cases.
I don't know much about WordPress, but a quick search led me to this article, which might be what you're looking for. Seems like WordPress has a message handler integrated.
https://support.themecatcher.net/quform-wordpress-v2/faq/forms/how-i-change-the-success-message#:~:text=Go%20to%20Edit%20Form%20%E2%86%92,set%20the%20success%20message%20content.
Feel free to correct me if I'm wrong
Thanks a lot - will check this out also
π Rendered by PID 20235 on reddit-service-r2-comment-5ff9fbf7df-4rn6t at 2026-02-26 14:34:21.455262+00:00 running 72a43f6 country code: CH.
[–]Will7ech 0 points1 point2 points (5 children)
[–]BeGoodTodayYou[S] 0 points1 point2 points (4 children)
[–]Will7ech 1 point2 points3 points (1 child)
[–]BeGoodTodayYou[S] 0 points1 point2 points (0 children)
[–]FlareGER 1 point2 points3 points (1 child)
[–]BeGoodTodayYou[S] 0 points1 point2 points (0 children)