Menu
Home
Forums
New posts
Search forums
What's new
New posts
New media
New media comments
New profile posts
Latest activity
Media
New media
New comments
Search media
Members
Current visitors
New profile posts
Search profile posts
Account Upgrades
Advertise
Marketplace
Money
PerfectMoney
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Home
Forums
Programming & Web Design
Scripting
HTML & JavaScript
Javascript
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Noemi Kris" data-source="post: 16893" data-attributes="member: 7236"><p>I have a question. Hoe do i can store a variable into a cookie?</p><p>For example i have the function:</p><p></p><p>function log(){</p><p>var userinput = {</p><p>Name: document.getElementById('name').value</p><p>}</p><p>Var user = userinout.name;</p><p>}</p><p></p><p>Hoe can i store the 'user' variable into a cookie, and how can i automaticly fill this input from the user after reloading website into for example Forms?</p><p></p><p>Thx for your answers</p></blockquote><p></p>
[QUOTE="Noemi Kris, post: 16893, member: 7236"] I have a question. Hoe do i can store a variable into a cookie? For example i have the function: function log(){ var userinput = { Name: document.getElementById('name').value } Var user = userinout.name; } Hoe can i store the 'user' variable into a cookie, and how can i automaticly fill this input from the user after reloading website into for example Forms? Thx for your answers [/QUOTE]
Name
Verification
Post reply
Home
Forums
Programming & Web Design
Scripting
HTML & JavaScript
Javascript
Top