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 Link to comment https://forums.phpfreaks.com/topic/77979-javascipt-syntax-problem-probably-very-simple-to-solve/ 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> Link to comment https://forums.phpfreaks.com/topic/77979-javascipt-syntax-problem-probably-very-simple-to-solve/#findComment-395001 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.