CLosing Parent Window on Child Window open? |
CLosing Parent Window on Child Window open? |
David_Hayden |
Aug 8 2007, 07:06 PM
Post
#1
|
Newbie Group: Members Posts: 10 Joined: 6-August 07 Member No.: 3,502 |
I'm trying to do one of two things;
a.) Have the new page open in the current browser window b.) failing that, have the original page close once the new page is opened. I've seen a couple of scripts that will do the above, but I'm not sure how to work that into the current links I have which also keep things like the toolbar, menubar, scrollbars, etc from showing up (the link code is listed below). <a href="java script://" onclick="java script: window.open('http://www.geocities.com/david_hayden_cj/course_template_page_2b.htm','newwindow',config='height=700,width=1100, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, directories=no, status=no')"><img src="previous_arrow.gif"></a> Any suggestions? |
Darin McGrew |
Aug 8 2007, 07:46 PM
Post
#2
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
My advice? Here you go:
|
Brian Chandler |
Aug 9 2007, 01:08 AM
Post
#3
|
Jocular coder Group: Members Posts: 2,460 Joined: 31-August 06 Member No.: 43 |
What you're trying to do is called vandalism. Here's a bit of help for Firefox users:
In Edit > Preferences > Content, enable Javascript, then go to the "Advanced" button for Javascript, and turn off everything - resizing windows, interfering with context menus, etc. This will allow useful scripts, but stop practically all stupid web tricks. Oh, and if a popup window announces you've won the lottery, rush off quick to collect your money! <g value=not> |
David_Hayden |
Aug 9 2007, 09:56 AM
Post
#4
|
Newbie Group: Members Posts: 10 Joined: 6-August 07 Member No.: 3,502 |
[*]Stop trying to muck with the browser (toolbar, menubar, scrollbars, etc.). It isn't your browser. [/list] Actually it is, or more precisely it's the company's browser, as this is for an internal training course and not a public web application. But I appreciate your other advice - using the JavaScript to set the initial window parameters and then relying on regular HTML links seems to be the solution I was looking for. Thanks for your help! |
David_Hayden |
Aug 9 2007, 09:57 AM
Post
#5
|
Newbie Group: Members Posts: 10 Joined: 6-August 07 Member No.: 3,502 |
What you're trying to do is called vandalism. Here's a bit of help for Firefox users: In Edit > Preferences > Content, enable Javascript, then go to the "Advanced" button for Javascript, and turn off everything - resizing windows, interfering with context menus, etc. This will allow useful scripts, but stop practically all stupid web tricks. Oh, and if a popup window announces you've won the lottery, rush off quick to collect your money! <g value=not> So those lottery pop-ups aren't real? Damn........ Not so much trying to vandalize innocent users browsers as create an internal training course, and the navigation and menus aren't really necessary or helpful. Thanks though. |
Lo-Fi Version | Time is now: 27th April 2024 - 02:51 PM |