shadowvixen
09-12-2003, 02:03 PM
I have a function that opens a new window and closes the original window. I would like to close the original window without getting a prompt. What is the easiest way to accomplish this?
TIA!!
TIA!!
|
Click to See Complete Forum and Search --> : Close Window - Without prompt shadowvixen 09-12-2003, 02:03 PM I have a function that opens a new window and closes the original window. I would like to close the original window without getting a prompt. What is the easiest way to accomplish this? TIA!! AdamGundry 09-12-2003, 02:05 PM This hack appears to work in most browsers: window.opener = top; window.close(); Adam rigo9 09-12-2003, 02:35 PM Try this: <body> <OBJECT id="closes" type="application/x-oleobject"classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"> <PARAM NAME="Command" VALUE="Close"> </OBJECT> <a href="your_jump_file.html" onClick="closes.Click();JavaScript:open'your_jump_file.html','','height=600,width=790,locationbar=no,scrollba rs=yes,resizable=yes,status=no,menubar=no,toolbar=no')"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">link-name</font></a> </body> shadowvixen 09-12-2003, 02:36 PM That works beautifully!!! rigo9 09-12-2003, 03:24 PM To AdamGundry Your explication is more simply so: Click the X on upper-right window. pyro 09-12-2003, 03:28 PM Originally posted by rigo9 To AdamGundry Your explication is more simply so: Click the X on upper-right window. What? The code (or very similar) that Adam Gundry posted can be viewed in http://www.infinitypages.com/research/selfclose.htm shadowvixen 09-12-2003, 03:32 PM Adam's response worked great! I didnt try yours but I am sure it works as well - I like the quick and to the point though :p Originally posted by rigo9 To AdamGundry Your explication is more simply so: Click the X on upper-right window. rigo9 09-12-2003, 04:11 PM Did I just say it.. the Adam's code is best... but the implementation of these code for any "beginner" is more difficult (maybe). If the example looks like: <a href="any_page.htm" onClick="window.opener=top; window.close();JavaScript:open('any_page.htm','','height=600,width=790,locationbar=no,scrollbars=yes ,resizable=yes,status=no,menubar=no,toolbar=no')"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Make_Click</font></a> There is not better? Excuse me! Bye... Extreme 09-20-2003, 10:44 PM Is it possible to putt some BODY ONLOAD script here, so when someone clicks URL, it takes him to this popup site, which then popus up 'any_page. htm' like in example. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |