Forum Moderators: open
I was looking for a javascript code similier to the one in google reply format. as soon as the user clicks on the reply text box the whole frame is loaded showing a complete window.
I have tried lot of ways..but when i use onfocus event the whole page loads, i have no idea how to use frame property in javascript.
Is there a way around, not exactly as google just the way google does it with new stuff all the time!
thanks!
// Toggle display of divs
function toggle(categoryName) {
with (document.getElementById(categoryName).style) { display = (display == 'none')? 'block' : 'none'; }
}
example code on which it works:
<a name="abc"></a>
<a href=\"javascript:toggle('menu_abc')\">
<div class='menuCategory'> + (i++) + " (abc)</div>
</a>
You may need to rig this a little bit, I took it from a more elaborate piece of code and haven't tested the above.
Hope this helps
Tech