Varma has Published 54 Articles

How to display JavaScript variable value in alert box?

varma

varma

Updated on 16-Jun-2020 13:14:18

8K+ Views

To display JavaScript variable value in an alert box, try to run the following code −ExampleLive Demo                    function display() {             var a = "Simple";             var b = "Learning";             alert(a +" Easy "+ b);          }                        

How much data can I store in JavaScript cookies?

varma

varma

Updated on 16-Jun-2020 12:14:45

536 Views

The following are the details of the date you can store in JavaScript cookies −Web BrowserMaximum cookiesMaximum size per cookieGoogle Chrome1804096 bytesFirefox1504097 bytesOpera1804096 bytesAndroid504096 bytes

HTML5 Geolocation without SSL connection

varma

varma

Updated on 02-Jun-2020 07:41:28

875 Views

HTML 5 Geolocation is used to find out the location of the user. This can be without SSL connection. This can be generated as follows −// Variable apigeo shows successful location: var apigeo = function(position) {    alert("API geolocation success!lat = " + position.coords.latitude + "lng = " + position.coords.longitude); ... Read More

How to specify the number of visible options for