dvayne Posted April 28, 2008 Share Posted April 28, 2008 when I click a link it will display a message.. it is possible in javascript? please help me.. Quote Link to comment https://forums.phpfreaks.com/topic/103230-clicking-a-link/ Share on other sites More sharing options...
RichardRotterdam Posted April 28, 2008 Share Posted April 28, 2008 uhm thats kinda vague be more specific. do you want an alert? <a href="javascript:alert('your text sir')" >text </a> Quote Link to comment https://forums.phpfreaks.com/topic/103230-clicking-a-link/#findComment-528806 Share on other sites More sharing options...
GameYin Posted April 28, 2008 Share Posted April 28, 2008 You could have this.. <script type="text/javascript"> function mesg(); ... </script> <a href="javascript:mesg();">text</a> Dunno, I'm a bit new to JS but that should work... Quote Link to comment https://forums.phpfreaks.com/topic/103230-clicking-a-link/#findComment-528811 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.