1

I have a aspx page where in I have made a form. There is a help button on this form.When I click on the help button I have created html code in Javascript.

    function help_For_admin()
{

var Message_Help = '<p><b>Admin Page Description</b></p>'


 document.getElementById("help").innerHTML =Message_Help ; 
 document.getElementById("Div_Admin").style.display = "";
   }

Now when I click on the help button I want the div Div_admin to get focus and the remaining elements of the aspx page to be disabled and when I close the div window the aspx page to get focus.How can I do this.I would like an answer without the use of jquery

gizgok
  • 7,303
  • 21
  • 79
  • 124

3 Answers3

2

How to disable all div content

Similar to what your trying to do with disabling, instead of a checkbox...

Community
  • 1
  • 1
Avien
  • 1,270
  • 2
  • 14
  • 30
0

Place any server side control bellow the div and write the button.fous() in the page load or other event. Or with javascript using the focus() function, for example

document.getElementById('Div id').focus();
tkanzakic
  • 5,499
  • 16
  • 34
  • 41
imran
  • 1
0

you can use jquery blockUI to easily to disable any portion of the page. http://jquery.malsup.com/block/#element

Zo Has
  • 12,599
  • 22
  • 87
  • 149