JSP with <DIV> tag

Hi All,

I have header,footer and 5 buttons in my home page. By clicking the buttons the content should change inbetween header and footer. It should be easily achieve by frameset, but i wish to write the code with the help of div tag. Please guide me to do the same in div tag

Thanks in advance

[313 byte] By [sakthiia] at [2007-11-26 13:14:25]
# 1

make use of document.getelementbyid("DIVID").innerHTML = <Changed Value>

U check the below example.

<head>

<script language="javascript ">

function change(){

document.getelementbyid("header").innerHTML = "NEW_CUSTOMIZED_HEADER ";

document.getelementbyid("footer").innerHTML = "NEW_CUSTOMIZED_FOOTER ";

}

</script>

</head>

<body>

<div id="header" > CUSTOMIZED_HEADER </div>

<input type="button" onclick="change()">

<div id="footer" > CUSTOMIZED_FOOTER</div>

</body>

but what i heard & learnt is that innerHTML is bit browser specific.

However it wud gr8 if u can look into other options and keep us updated with other workaround solutions.

RahulSharnaa at 2007-7-7 17:33:47 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...