Click to See Complete Forum and Search --> : does anyone know what I'm look for (pop-up type)


mitya
10-11-2003, 03:03 PM
Hi all

I'm pretty new to JS, but I do know of a pop-up window type which has a special command, and acts more like a software window since you can't right click on it. A friend once told me what the command was for this- does anyone know what I mean?

Thanks in advance.

Khalid Ali
10-11-2003, 04:57 PM
If I understood it correctly,the command is
window.open("urlToOpen","windowName","poperties such as scrollbars width etc");

and to make un rightclickable you will need to write some javascript to sense which mousebutton is clicked and return it false.

mitya
10-11-2003, 05:38 PM
THanks for the reply Khalid but unfortunately it's not what I'm after. I know you can do it all with a standard pop-up script then disable context menu as normal, but there is an in-built function which opens up a window of some kind, and uses a different command to the normal open window commands. Its main feature is that you can't right click anywhere and instead looks like a software window.

Oh well!

Khalid Ali
10-11-2003, 11:15 PM
Thas has to be MS specific then,because the solution I posted and you already know is valid JavaScript.
you may want to try MSDN on the net

TomDenver
10-12-2003, 12:05 AM
alert("text here") ?

mitya
10-12-2003, 04:37 AM
OK thanks Khalid.

Tom- thanks also but sadly it's not what I'm after. It's not an alert or question window, rather a window in which you can display an URL, only right-clicking is disallowed (by its defintion, not with extra script).

Oh well :o(

dragle
10-13-2003, 08:39 AM
You might be thinking of modal dialog boxes, via the showModalDialog method of a window; and yes, that is Internet Explorer only. Here's information from Microsoft:

MSDN: showModalDialog (http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/showmodaldialog.asp)

Cheers,

mitya
10-13-2003, 08:41 AM
Thanks for that Dragle, that's exactly what I need.