473,699 Members | 2,562 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

java script souce code in js file how can i hide this to click to view souce code pre

1 New Member
sir,i have javascript file,this file link in html script for exp.< a href="js\jsmyfu n.js"></a>
above file could view to press mouse right button please
sloved this problem.
Jun 7 '17 #1
1 1338
Dormilich
8,658 Recognized Expert Moderator Expert
first, don't link your files using hyperlinks.

second, as soon as anyone uses the browser's dev tools, he has access to all resources that the browser requested (HTML, CSS, JS, XHR, etc.).
Jun 7 '17 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1486
by: bergarath | last post by:
Can anyone see whats the problem here. Menus wont open..Works fine i IE, but none else.. I also need the menus to shut automatically when the next opens.. possibly with a java script function? <!DOCTYPE HTML PUBLIC "-//W3C//DTD DHTML 4.01 Transitional//EN"> <html> <head> <title>Meny</title> <meta http-equiv="Content-Type" content="text/html
2
4926
by: Cheng Wei-Chao | last post by:
hi: i have a button, when i click it i want to store data to database and open a new window in general we use java script to open new window but how to call java script function after i executived the server side code thank you!
0
997
by: top teach | last post by:
hello ,everybody: Can you tell me where can download the souce code of Microsoft .NET Framework Setup.exe Bootstrapper Sample? Because i need install not only ..NET Framework but also Sql server msde. Anybody did it? pls help me. Thanks
1
1235
by: Rogerio Leite via .NET 247 | last post by:
Friends please send me a souce code corrent article. -------------------------------- From: Rogerio Leite ----------------------- Posted by a user from .NET 247 (http://www.dotnet247.com/) <Id>C9HxqEAcekqJuDd/cPjJAQ==</Id>
9
1835
by: srinivask | last post by:
hai just tell that how can i protect the java script code without seeing view source it should not the code. i want function to perform
1
6484
by: nafe | last post by:
Am trying to implement a shopping cart in java script which is using cookies. I have a form consisting of itemID,quantity and price. these are details that the user has selected. below is the code with two functions setcookie called from a button click event and getcookie called from link click event.But nothing is happening.Could anyone help me to figue what is the problem with the code.the others are comments after i discovered its not...
3
5422
by: Tenacious | last post by:
I find that I can call a function in my code behind file from Java Script on the aspx page using this syntax: Lat = <%= GetNextLatitude()%> The function has to be static. No problem so far. When I put the function in a for loop like so: for(var i = 0; i < TotalPoints; i++) { Lat = <%= GetNextLatitude()%> Lng = <%= GetNextLongitude()%>
2
2697
by: Jay | last post by:
I have a web app running on the windows CE device. In one of the asp.net pages - it has javascript code. That seems to have a memory leak. When I run the web app - in about one hour, the app hangs. I looked at the memory and it seems to be full. I removed all the javascript code - and the app seems to be have no leaks. As soon as I include my javascript code - the memory consumption gradually increases. Whether I actually invoke the...
1
1534
by: Developer111 | last post by:
I am using ‘findInPage(str)’ method of java script for searching in my tree view like application having nodes (collapse/expanded). The problem I am facing is that while searching a phrase (Find Next), the explorer throws an exception in case, when ‘findInPage(str)’ method finds a particular string in the collapsed node and work fine in case of expanded node. The requirement of my application is that I have to perform searching only on those...
1
1391
by: mountain6464 | last post by:
Am trying to dynamically add the fields for subjects and the grades obtained, but am getting an error "Undefined index: subject in..." when posting those variables using java script. Could there be something am missing with my posting mechanism. Notice that in the form data am not puting id="subject" to avoid picking the id for only one subject, but I dont seem to know how to represent this in the java script as we will see below. form...
0
8705
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8623
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9196
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9054
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8896
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7784
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4390
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4637
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3071
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.