/    Sign up×
Community /Pin to ProfileBookmark

htmlfile.ht possible ??

I know that javascripts can be loaded into a browser by using:

<script language=”javascript” src=”jscriptfile.js”></script>

Is it possible to do the same for html files, something like

<language=”html” src=htmlfile.ht”> ??

I hate the idea of users seeing my source code for the html displayed by going to view->source on IE. Is there any way to prevent users from being able to view your source code, perhaps as I tried above with the .ht file or maybe even by somehow disabling the view option so users cannot view the source ???

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@NogDogNov 13.2005 — Nope. If you don't want people to see it, then don't publish it in HTML. (Oh, there are a few JS things you can do to make it a little more difficult for people using lame browsers like IE, but even in that case they just have to go to their temporary web files directory and open it up using their text editor of choice.

Besides, what amazing, secret code are you trying to hide? It's just HTML, it's not rocket science.
Copy linkTweet thisAlerts:
@shashgoauthorNov 13.2005 — Just kidding, it is just html. I guess hiding the html stuff wouldnt matter too much, cause if the user wanted to design his page like mine, I guess he could look at my page, and then write his own html. However, if I were able to preven him from viewing the html code so that he couldnt do a cut and paste, it would probably discourage him from writing out the html himself.
×

Success!

Help @shashgo spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...