If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

javascript to prompt a window

Started by ittimes, 19 Jan 2018 01:57:29 PM

Previous topic - Next topic

ittimes

<a style="cursor:pointer"; onClick='javascript:togglePrompts("divPrompts");'>
---

</a>
---

<script>
function togglePrompts(name)
{
                var divPromptsclass = document.getElementById(name);
                if (divPromptsclass.style.display=="inline")
                {
                                divPromptsclass.style.display = "none";
}
                else
                {
                                divPromptsclass.style.display  = "inline";
                }
               
}

</script>

--------

<div id="divPrompts" style="display:none; overflow-y:auto; position:absolute;

left:300; top:100; height=100; width=500;

background-color=ffffff;border:2px groove gray;">

---
<script>
function togglePrompts(name)
{
                var divPrompts = document.getElementById(name);
                if (divPrompts.style.display=="inline")
                {
                                divPrompts.style.display = "none";
}
                else
                {
                                divPrompts.style.display  = "inline";
                }
               
}

</script>
----

</div>