jug Posted November 19, 2007 Share Posted November 19, 2007 all i need to do is find out the correct syntax so i can put a variables value where there is *variablehere* - im sure this is very simple. Any help would be much appreciated. *variablehere* .insertBefore(parent, *variablehere* .firstChild); thanks in advance jug Quote Link to comment Share on other sites More sharing options...
pranav_kavi Posted November 20, 2007 Share Posted November 20, 2007 I assume ur luking 4 replace method for Strings in javascript. Syntax: stringObject.replace(findstring,newstring) Example: replace the word Microsoft with W3Schools <script type="text/javascript"> var str="Visit Microsoft!" document.write(str.replace(/Microsoft/, "W3Schools")) </script> Quote Link to comment 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.