Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

J.Script to disable view source code?????

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
hi anyone knows a java script to disable view source code on a web page?

thanks
 
Hi Darren. This one is asked nearly every week. In general terms, you can't stop people from viewing your source code. If they're looking at your page, then it's been downloaded to their computer! You can stop them from right-clicking to choose "View Source", and you could use a window with no menus so they can't do "View -> Source", but that's about it. I personally think it's futile trying to attempt this sort of thing.

Have a look through the previous threads on this forum to see what you can do.

Greg.
 
p.s. Have a look in the Javascript forum - that's where most of these sorts of questions are asked.

Greg.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top