Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

bobschwenkler on "Trouble adding inline JS in page content"

$
0
0

I'm having trouble with WP stripping JS from my page content. I'm wanting to use the following code as part of my Mailchimp opt in, and the JS is getting stripped. It works in preview mode but the moment I update the page the code disappears. I've been searching for over an hour for a solution and can't find one!

<input id="mce-FNAME" class="required" name="FNAME" type="text" value="First name" onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;"/>


Viewing all articles
Browse latest Browse all 8245

Trending Articles