How to run javascript code in any part of the html file?

Posted by DomingoSL on Stack Overflow See other posts from Stack Overflow or by DomingoSL
Published on 2010-05-29T02:56:51Z Indexed on 2010/05/29 3:02 UTC
Read the original article Hit count: 303

Filed under:
|
|

Hello, im using a jquerry notification system who runs when the user click on a link:

<a href="javascript:void(0);" onclick="$.n('This is a sample notification message, there are 3 more notification types which is all customizable through CSS.');">here</a>

But the think is that i want to run $.n('This is a sample notification') not by pressing a link. I want to call the event when something happend with a If statement made on php.

Ex.

<?php if (condition) { DO THE NOTIFICATION; } ?>

Thanks!

© Stack Overflow or respective owner

Related posts about php

Related posts about jQuery