JrrSIN Posted October 7, 2015 Share Posted October 7, 2015 Hello, My website is showing the javascript code within the head tags, like this: <head> <link rel="shortcut icon" href="https://www.mySite.com/favicon.ico"/> <title>My Site</title> <meta name="Description" content="My Site" /> <meta name="Keywords" content="My Site" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><!-- EOF: Header Tags SEO Generated Meta Tags --><base href="https://www.mySite.com/"/> <!-- start get_javascript(applicationtop2header) //--><script language="javascript"><!--function session_win() { window.open("http://www.mySite.com/info_shopping_cart.php","info_shopping_cart","height=460,width=430,toolbar=no,statusbar=no,scrollbars=yes").focus();}//--></script><!-- end get_javascript(applicationtop2header) //--> <link rel="stylesheet" type="text/css" href="stylesheet_nav.css"> <link rel="stylesheet" type="text/css" href="/includes/sts_templates/mySite/stylesheet.css"> </head> Is there a way to hide the javascript code in the html output, while still have it work on the page? I have: osC 2.2Rc2a STS 4.1 Thanks for you help Link to comment Share on other sites More sharing options...
Dan Cole Posted October 8, 2015 Share Posted October 8, 2015 @@JrrSIN Not sure what you mean...is the script displayed on the screen when you load the page or are you trying to hide the script code when you view the page source? Dan Need help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC community version (CE Phoenix) here. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.