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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

copy alert function 1

Status
Not open for further replies.

vlitim

Programmer
Sep 2, 2000
393
GB
Is there any way to mimic the way that when you use the alert function in javascript it disables the ability for the user to click on the window that the alert comes from.

ie I have a dhtml window that pops up and I don't want the user to be able to do anything unless they click an ok button in th DHTML window!

Cheers

Tim
 
Cheers but I would rather not have to as I want the window to appear in the style of the application that I am writing and that means rounded edges and no IE title bar etc, which is the reason I am using DHTML!

So is this the only way to do it?

 

You could try floating an iframe over all of your content, with a transparent image taking up all the space. This would effectively stop any clicking on elements.

Then put your DHTML dialog in another iframe with a higher z-index than the first.

Give it a whirl and see if it works.

Dan


[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]

 
fantasic works like a dream!! Thanks for the help!
 
What a clever and elegant solution!


Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top