<script type="text/javascript">
if(location.href.match('act=Post') || location.href.match('act=Msg') || location.href.match('index.php?')){
function document.write('<input type='button' onclick='if (window.Jacuba) Jacuba.applyTo('class: textinput')();' value='Spellcheck'/>')
}
</script>

Recommended Answers

All 3 Replies

You might try telling us what you WANT it to do.

OOps Sorry,
I want to insert that button In full reply and fast reply (as a posting option button) in an invisionfree free forum qwhere there is only wrapper access, no access to direct html templets.

loose the "function" keyword...

What your script does is declare a function ,which actually already exists, if the page url matches one of your options... it doesn't actually call the function...

place the script in the page where you want the html code written and then just use "document.write();"
rather than "function document.write();"

Peace

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.