Storage Tag: Javascript
Javascript : Text Resize with Cookie
I was telling you in a previous article - Javascript - text resize - how you can give your site’s visitors the possibility to see your page’s content at different text sizes, using javascript. Let’s take this further and think a little about the user… now, if he really needs a bigger text size, then he will have to use those buttons or links on each page - not so convenient, right? Well, don’t you worry about this because that’s what we have cookies for! […] [ → ]
Javascript : Text Resize
If you want to give your site’s visitors the possibility to see your page’s content at different text sizes, you can do it with the following javascript text resize solution. First you should decide which part of the page will be affected by text resizing and mark it with an id - in my example id=”content”. […] [ → ]
Javascript : Convert Strings to Numbers
How to convert strings to numbers in JavaScript? To convert a string to a number, use the JavaScript function parseFloat (for conversion to a floating-point number) or parseInt (for conversion to an integer). Syntax: parseFloat(’string’) parseInt( ’string’ [, base] )
[…] [ → ]
Javascript : Convert numbers to strings
So you have a float or interger value, and need it to convert ‘em to string. How to convert a float or interger value to string using javascript? The simplest way to convert any variable to a string is to add an empty string to that variable, for example: a = a+” // This converts a to string […]
[ → ]
