www.webdeveloper.com
Results 1 to 2 of 2

Thread: as do to keep changes after creating elements?

  1. #1
    Join Date
    May 2013
    Posts
    5

    as do to keep changes after creating elements?

    and keep the changes in the browser, for example if clicking on a link, it creates a new element already know to:
    var t = document.createElement ("p");
    t.appendChild (document.createTextNode ("new text"));
    document.body.appendChild (t);
    as I can keep the changes?
    say this because when I reload disappear, I was thinking cookies, but still do not read about them, am I right?, I would appreciate if you tell me that I have to wear reading.

  2. #2
    Join Date
    May 2006
    Location
    Somewhere behind your screen
    Posts
    1,648
    i thought that my english was awful )

    1. make a function to create everything that you want
    2. window.onload=yourFunction;
    xxx: Guess Buddhist riddle: "What is the sound of one hand clapping?"
    yyy: facepalm

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles