Allow Javascript in posts and pages adds the functionality to include Javascript in wordpress posts and pages by adding a simple shortcode [js].code.[/js] This plugin strips away the automatically generated wordpress <p> and <br/> tags but still allows the addition of your own <p> and <br/> tags by using [p] and [/p] or [br/] or [a href=’void(0)’]link[/a] Please submit bugs Usage To add the Javascript code to your post or page simply place any Javascript code inside the shortcode tags. For example: If you wanted to add content that is visible to a particular user id: For example: a simple alert [js] alert('helloWorld'); [/js] This code will cause a popup when the page is loaded. in addition, should this code not be working (for example a missing “;”) simply just change the [js] to be [js debug=1] [js debug=1] alert('helloWorld'); [/js] Some Important Notes This plugin strips away all instances of <p> and <br /> therefore code has been added so that if you wish to use tags in your output (e.g.): [js] alert(“hello <br /> world”); [/js] the < and > tags will need to be swapped for [ and ] respectively so <p> becomes [p] and </p> becomes [/p] which is converted back to </p> at runtime. these [ ] work for all tags (p, strong, em etc.). [js] alert(“hello [br /] world”); [/js] Misc Developed by Hit Reach Check out our other WordPress Plugins Version: 1.0 Support & Comments