1.How can i disable the close and the resize icons on the top right corner of a sub-window opened from a JavaScript function like this : function XXXX() { var winRef=window.open("ABC.jsp","windowName","window features.."); } 2. How do i prevent the user from using the main browser back and forward button (To view the previous and next page) without physically disabling them.
there is no way to disable the X it the title bar thank god! why do people want to do this anyway. would you like it if a site you went to popped up windows you couldnt close? how about it they popped up thousands of windows like that and caused you puter to crash?
Thanks Ian for the reference.I will get back to U soonest. Hi Randall , i have a button on the sub-window which serves as close icon(x) and i have attached some logic in the function called by this button , it also refreshes the parent window with some DB extract when clicked by user. I thought it was possible to disable some/all browser buttons using JavaScript. I am interested in this code if any.
Is it functionally possible to attach event handlers functions to OnUnload and Onload on the the same page/JSP. Can both events be fired on same page even if at different instances.
Is it functionally possible to attach event handlers functions to OnUnload and Onload on the the same page/JSP. Can both events be fired on same page even if at different instances.
yes that is not a problem and yes both events always happen
HI, Ian The pop window generator is great. But I need additional functionality in my application. I need to disable right mouse click in the poped-up window. How can I do it? Any Help?? Thx
Go through following link. It has similar implementation. Only additional thing you need to do here is capture events of poped up window. http://developer.netscape.com/docs/manuals/js/client/jsref/handlers.htm#1120635 Thanks, Onkar Shendge [ May 29, 2002: Message edited by: onkarshendge ] [ August 21, 2002: Message edited by: onkarshendge ]
You could attach a robot arm to the user's computer and control it via an applet and the serial port. If the user right-clicks on your page, give him a slap with the robot arm. He will soon stop right-clicking.
I have seen things you people would not believe, attack ships on fire off the shoulder of Orion, c-beams sparkling in the dark near the Tennhauser Gate. All these moments will be lost in time, like tears in the rain.
Hi All, I hadn't noticed this stuff mentioned anywhere so I figured I would just throw this out. I noticed someone mentioned why disable the X in a window? Since I had been dealing with NS for a project we could set the style of the browser to Kiosk (or super kiosk) mode. This would be used on a local intranet, not the internet. Look at the path (I believe) of the NS Browser and set the -browser to -sk (superkiosk) or -k (kiosk). Doing this removes the toolbar, menubar, and even the top right 3 buttons. Hope this might help someone out there. Rob