What are the security related issues in JavaScript scripts?
Answers were Sorted based on User's Feedback
Answer / naveen das
Basically the source code of the Javascript will be visible
when we select the source,hence the javascript part of the
code is fully transparent.
Secondly javascripts can be disabled on the browser easily
| Is This Answer Correct ? | 20 Yes | 4 No |
Answer / rajesh
One better way to hide the script is, Load a pane and write
all the scripts there... and the use them in the pages you
are displaying.
| Is This Answer Correct ? | 3 Yes | 4 No |
Answer / rubin thomas
Basically all that naveen said is true but there cannot be
any instance of js hiding it can always be viewalble if u
know how to do it.
Also other security issues are that u can track the ip of
the system on which the site has been view also the time of
loading on the current system.
Since javascript has no current standard which monitors the
use of js it can be used in any way you want to.
Therefore security related issues in javascript is just a
idea but never a hard code procedure.
| Is This Answer Correct ? | 5 Yes | 8 No |
How do I open javascript in chrome?
Explain how can you submit a form using JavaScript?
Is there an ide for javascript?
What's the difference methods get and post in html forms?
i want to display time using hidden variable in a page,but when i click button that page that hidden variable loosing its value.i m sending the code also. <script type="text/javascript" language="javascript"> var tick=0; window.onload = function() { //debugger if(document.getElementById("hdnTicker").value != "") tick = parseInt(document.getElementById("hdnTicker").value); setInterval("Timer()",1000); } function Timer() { //debugger document.getElementById("hdnTicker").value = tick++; //alert(document.getElementById("hdnTicker").value); document.getElementById("lblTimeSpent").innerHTML = "0." + tick; if(tick == 30) { //message or redirect to result window alert('time is out'); //clearTimeout(); } } </script> <form id="form1" runat="server"> <div> <table> <tr> <td> <asp:Label ID="lblTimeSpent" runat="server" Visible="true" ForeColor="Blue" ></asp:Label> </td> <td> <%-- <asp:textbox EnableViewState="true" id="hdnTicker" runat="Server" style="visibility:hidden"></asp:textbox>--%> </td> </tr> <tr> <td> <asp:Button ID="btn" runat="server" Text="hi" OnClick="btn_Click" Height="30px" Width="60px" /> </td> </tr> </table> <%--<asp:HiddenField ID="txt" runat="server" Visible="true" />--%> </div> </form> <input type="hidden" id="hdnTicker" name="hdnTicker" enableviewstate="true" runat="server" />
What is the output of below code var car = new Vehicle("Honda", "white", "2010", "UK"); console.log(car); function Vehicle(model, color, year, country) { this.model = model; this.color = color; this.year = year; this.country = country; }
What is node ecosystem?
What can javascript programs do?
Explain how to write class methods vs. Instance methods.
How do I enable javascript on google?
How to write html code dynamically using JavaScript?
How about 2+5+"8"?