rashmi_k28 Posted November 10, 2008 Share Posted November 10, 2008 <HTML> <HEAD> <TITLE>OnClick alert message</TITLE> </SCRIPT> </HEAD> <BODY> <CENTER> <A HREF="" onclick="alert("Here is where you write what you want it to say")">Click Here!</A> </CENTER> </BODY> </HTML> Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted November 10, 2008 Share Posted November 10, 2008 You cannot use double quotes twice. Change the quotes around your alert message to single quotes. <A HREF="" onclick="alert('Here is where you write what you want it to say')">Click Here!</A> And next time a bit of a brief on your problem would be nice. Quote Link to comment Share on other sites More sharing options...
aliasneo86 Posted November 10, 2008 Share Posted November 10, 2008 <HTML> <HEAD> <TITLE>OnClick alert message</TITLE> </SCRIPT> </HEAD> <BODY> <CENTER> <A HREF="" onclick="javascript: alert('Here is where you write what you want it to say');">Click Here!</A> </CENTER> </BODY> </HTML> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.