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> Link to comment https://forums.phpfreaks.com/topic/132097-alert/ 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. Link to comment https://forums.phpfreaks.com/topic/132097-alert/#findComment-686473 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> Link to comment https://forums.phpfreaks.com/topic/132097-alert/#findComment-686476 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.