hi
refer below thread
http://www.aspforums.net/Threads/158688/how-to-use-popup-menu/?s=2#Replies
I use below code for solving problem:
<script type="text/javascript">
window.onload = function () {
document.getElementById('A1').addEventListener('click', function (e) {
e.preventDefault();
window.location.href = window.location.href + "#" + this.href.split('/#')[this.href.split('/#').length - 1];
})
};
</script>
now I want use 3 modaldialog in page:
<script type="text/javascript">
window.onload = function () {
document.getElementById('A1').addEventListener('click', function (e) {
e.preventDefault();
window.location.href = window.location.href + "#" + this.href.split('/#')[this.href.split('/#').length - 1];
})
};
</script>
<script type="text/javascript">
window.onload = function () {
document.getElementById('A2').addEventListener('click', function (e) {
e.preventDefault();
window.location.href = window.location.href + "#" + this.href.split('/#')[this.href.split('/#').length - 1];
})
};
</script>
<script type="text/javascript">
window.onload = function () {
document.getElementById('A3').addEventListener('click', function (e) {
e.preventDefault();
window.location.href = window.location.href + "#" + this.href.split('/#')[this.href.split('/#').length - 1];
})
};
</script>
but here just one of them worked correctly 2 other modaldialog didn't work...
how I can use 3 modaldialog in page correctly?
best regards
neda