Button post back.........

  • Thread starter Thread starter John
  • Start date Start date
J

John

I have attached the java script code to Button web control as follows.

myButton.Attributes.Add("OnClick", "OpenWindow()")

I have written java script to open the window in the OpenWindow function.

When I click on the myButon, new window will open and at the sametime
button is posting back the form(?) and the main window comes up and the
opened window goes behind. So that my purpose of displaying the data(window)
is lost. how to make sure that the opened window will remain on top in the
clicked event of button.
Thanks
john
 
Hi John,

Here is your answer...

In the popup window put the fallowing in the body tag :

onblur="window.focus()"


You'll see the result is better then you think. =)

Gönen.
 
Back
Top