Vantskruv
-
Posts
3 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Vantskruv
-
-
SOLVED!Hi!I'm creating a special webpage with a question for each page.I've made .js file where I create variables, e.g. var user_answer or var currentQuestionI want these variables to be stored when I reloading the page for the next question. But I don't get it to work, because when I'm reloading the page all the variables is reinitialized. So what is the best way to save information when a user is reloading the page, or the page is automatically reloaded? I've tried to write a script that write's the page all over again but it seems it doesn't works so well with the javascript, or am I making everything wrong. I have a big sample at my homepage, I guess it's very hard to read but I put it up anyway if you are curios. http://hem.bredband.net/b308144
-
In HTML-code I use cellspacing and cellpadding like this:
<table cellspacing="0" cellpadding="0"></table>
I get the same results in CSS when coding like this:
table { margin: -1px; padding: -1px;}
What troubles me is it really legable to add a negative value in the margin and padding variables in the CSS-coding? Does this CSS-code really act exactly the same way as the HTML-code?/VantskruvEdit: Note that when using values 0px instead of -1px in the CSS-code the result will be different than the HTML-code.
- 1
Reloading page while saving variables?
in JavaScript
Posted