Results 1 to 4 of 4
Related
-
using javascript to update checkbox values and write output to textarea dynamically Forum: Javascript Forum
Replies: 6 -
Question about using Javascript to write XML tags and all to the browser window Forum: Javascript Forum
Replies: 0 -
document.write() query Forum: Javascript Forum
Replies: 4 -
multi-level JavaScript document.write / html page within a html page Forum: Javascript Forum
Replies: 7 -
document.write question Forum: Javascript Forum
Replies: 5
-
07-05-2003, 06:24 AM #1
Javascript document.write problems
I have code which looks something like the following:
Code:<head> <title>Wonderful Website</title> <script> function drawLayerLogin() { document.write('testing...'); } </script> </head> <body bgcolor="#00ffff"> <A href="javascript:drawLayerLogin();">Login</a> </body>
-
07-05-2003, 06:45 AM #2
Hi there,
There is a method called innerHTML which would do this, but it is not very cross-browser. Therefore, I think you should use CSS.
If you have your layer on the page. but display: none set on it, you can change the class of the layer to make it visible using JavaScript.
Tutorial on changing classes via JavaScript -
http://css.somepeople.net?page=dynamicIf one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
07-05-2003, 10:46 AM #3
So where does changing text colours come into making layers visible?
-
07-05-2003, 11:20 AM #4
With a little imagination.
its an example of how to change the class of an element, so what if the two classes are -
Code:.hide { display: none; } .show { display: block; }
If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum