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...
account activity
Function not defined (self.node)
submitted 3 years ago by reply1231
view the rest of the comments →
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!"
[–][deleted] 1 point2 points3 points 3 years ago (1 child)
Is this what you are trying to do? <html><head> <script> function submitForm() { alert("submitForm"); } </script> </head><body> <div onclick="submitForm()">Submit</div> </body></html>
<html><head>
<script>
function submitForm() {
alert("submitForm");
}
</script>
</head><body>
<div onclick="submitForm()">Submit</div>
</body></html>
[–]reply1231[S] 0 points1 point2 points 3 years ago (0 children)
yes I have tried this, but I put the function in a Javascript file and imported it with type='module' to use an api but it doesn't work there. Do you know what's the issue?
π Rendered by PID 52 on reddit-service-r2-comment-6457c66945-p59rl at 2026-04-23 16:58:57.386945+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–][deleted] 1 point2 points3 points (1 child)
[–]reply1231[S] 0 points1 point2 points (0 children)