Readonly popup window

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • pbuu@tdc.dk

    #1

    Readonly popup window

    Hi

    Does anybody know a cross-browser way to create a readonly popup
    window, ie it should not allow itself to do anything but to close.
    No refresh F5, no rightclick etc.

    Regards/peter
  • Dominique

    #2
    Re: Readonly popup window

    This will prevent f5's by just closing the thing
    Won't work if ur hoping to navigate in that window...

    <script language="Javas cript">
    window.onunload = function() {
    window.close()
    }
    </script>

    use modalDialogWind ow, and
    <body oncontextmenu=" return false" for IE

    or

    look for any 'Prevent right click' scripts... nothing can help you with
    right-clicking tho'


    if i wanna see source in a pop-up window running those scripts i just Ctrl+N
    and proceed using the toolbar or Shift+F10

    <pbuu@tdc.dk> wrote in message
    news:ea8ba050.0 404010546.2aa3a 1be@posting.goo gle.com...[color=blue]
    > Hi
    >
    > Does anybody know a cross-browser way to create a readonly popup
    > window, ie it should not allow itself to do anything but to close.
    > No refresh F5, no rightclick etc.
    >
    > Regards/peter[/color]


    Comment

    Working...