Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

onclick event should show a small window just below the button

Status
Not open for further replies.

meenu24

Programmer
May 5, 2006
37
US
Hi,

I have a button, when I click it, it should go to DB and fetch some data and display data in a small window below the button with a close sign. What should be my option for window and how do it show it on button click.

Thanks for your time

Meena
 
Hi

In big lines :
Code:
<input type="button" onclick="windows.open('/path/to/whatever.ext','','left=99,top=99')">
Regarding the proper window position calculated instead of those 99, I will not tell you. ( Anyway, my browser does not listen to such settings. ) Try to Google for finding out position with JavaScript.

For a somehow faster and better controllable solution I would suggest to take a look at DHTML window.

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top