|
-
Oct 14th, 2001, 03:07 AM
#1
Using problem with <div> tag in Netscape
On my web page I need to change the text of certain paragraphs depending on the information entered by the user. I wrote a code using the <div> tag (gave it ID and formatted it the way I needed it) and then I started to write JavaScript code. After I finished coding I started testing. First IE - works perfectely. Then Netscape - nothing happens. And here is the problem - why doesn't anything happen in NS if it works perfectly in IE? I assume that it is one of these stupid things that work in one browser but not in the other due to differences in the implementation (duh!!). But anyway how can I do <div> style thing in Netscape?
Here is a sample code of what I did
<html>
<script language = "JavaScript">
function sayHi(){
test.innerText = "Hello VB-World";
}
</script>
<div id="test" style: blah blah blah blah you got the idea>text</div>
</html>
Thnx for any help
Spike
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|