Problem with document.write in HEAD section...
I have something like this:
<title>::: js step one :: /title>
<a HREF onclick="myfunc('HAHA')">Click here</A>
When I click on the "Click here" the "HAHA" is showing but the html code disapears... What's wrong???
---If invoked while the page loads it can add to the current content.
---If invoked after the page loads how you want it to, it clears the current document and writes the content into the window.
hmmm, so what should I do? I would like to change the css link (<LINK REL="stylesheet" HREF="file.css" TYPE="text/css">) with one click and without page reloading...
ok, i found
but is there any simplest method to do this (without adding id to css href)???