Jump to content

[SOLVED] javascript code not showing with view page source


simpli

Recommended Posts

Hi,

there are some website out there where the whole javascript isn't showing. Anyone has any idea how not to show the js when the user views the page source? Also there was a web page where I would see the data on the page (it would be text data, I know because I could select it and all) but when I view source, it was nowhere to be found. I know they used ASP but I don't know if it's an ASP function to hide all this information. Can anyone advise?

 

Thanks

J-R

Link to comment
Share on other sites

You can't use ASP to hide javascrip. ASP runs serverside and javascript clientside(in your case).

You can't really hide javascript you could encode it so it still works but wont be usable for others. As for the text you don't see, thats loaded with javascript dynamicly. I suggest you try firebug where you can see the source dynamicly while the page loads.

Link to comment
Share on other sites

Anyone has any idea how not to show the js when the user views the page source?

Not really, you can obfuscate it, or include it externally.. but not really hide it.

Also there was a web page where I would see the data on the page (it would be text data, I know because I could select it and all) but when I view source, it was nowhere to be found.

Try doing a "save as" on the page, then view the source of the saved version.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.