Jump to content

Prismatic

Members
  • Posts

    2
  • Joined

  • Last visited

Prismatic's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. The document.write method will overwrite the current document and enter the text you specify in its place when invoked as a function. You should only use it to output HTML while the page is being loaded. Since you are invoking it as a function which is called by a button, the page's HTML will have finished loading by the time it is used, and therefor the document will be overwritten with your document.write HTML.
  2. Hello,I was wondering if there was a JavaScript function that allowed the transfer of a variable's value from that of a string to a math object. I know how to use the to string method to do the opposite of this, but is the vice-versa also possible? I have searched for quite a while to find such a funtion, and I'm wondering now if it even exists.For example, if I have a variables value set to " a = '1' ," is there any way I can change the value of "a" to read, " a = 1 "?Thanks for reading.
×
×
  • Create New...