0

Here is the javas cript call in my code.

<script type="text/javascript" src="/OrderConfirmationStep/CreateOrderInformGoogleTag"></script> 

after the corresponding page renders I can able to see this line in the page source(on right click and view source in the browser). but The requirement is to hide the script and instead I has to display the content of this script.

How can I achieve this ??

Vishwanath
  • 6,284
  • 4
  • 38
  • 57
  • You can't hide hardcode from the source, because that is the source. Using _JavaScript_, you can hide it from "generated source", if you dynamically make the page server side you could do a replacement before the client ever sees it, or you could replace it in the hardcode – Paul S. Aug 28 '14 at 11:34
  • 1
    What is that you are trying to achieve? – Vishwanath Aug 28 '14 at 11:35
  • in the page source,After clicking on the Its showing some content, I want that content directly in the page source (want to avoid one more click to show the cotnent of in the page source ) – Maibub Patil Aug 28 '14 at 11:39
  • You need to change the server-side logic to spit out the JS into the page instead of generating the `script` tag. –  Aug 28 '14 at 12:08

0 Answers0