Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Hide Javascript code in head


JrrSIN

Recommended Posts

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

@@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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...