You need to sign in to do that
Don't have an account?
sunnysfdcdvp
A problem with the OnClick JavaScript for this button or link was encountered: syntax error
HI help me out
when i am writing javascript code in custom button it was saving correctly and code was correct.
but problem is when i am clicking on that particular button
i am getting
A problem with the OnClick JavaScript for this button or link was encountered: syntax error
please let me know
remove all code and just add below code.
alert("Welcome!");
and try, you will get alert on click of button.
All Answers
<html>
<body>
<h1>My First JavaScript</h1>
<p>
JavaScript can react to events. Like the click of a button:
</p>
<button type="button" onclick="alert('Welcome!')">Click Me!</button>
</body>
</html>
remove all code and just add below code.
alert("Welcome!");
and try, you will get alert on click of button.
Thanks sir
Cheer !!!!