Code required for determining target frame/window settings

  • Thread starter Thread starter Sherri
  • Start date Start date
S

Sherri

I am trying to modify our website so that it uses menus
to access help demonstration movies.

I have a page which is basically a menu and each item on
the menu links to the appropriate demonstration move.

The movie opens into a new internet explorer window as
required but what I want is to get rid of the menu bar
and toolbar from the window containing the movie.

I was given the following code to use:-

&nbsp;<a href="#" onClick="javascript:window.open
('AddSCChargeType.htm','BookWindow', 'statusbar=no,
scrollbars=yes, toolbar=no, menubar=no, resizable=yes');"
style="text-decoration:none">Adding Service
Charge 'Charge Types'</a></font><font face="Verdana"
color="#FFFFFF" style="font-size: 13pt">

....which partially works, in that it does open a 'menu
and toolbar-less' window containing my movie, however it
then also opens a replica of the original window so I end
up with three windows in total!!!

This is driving me mad as I do not know HTML code at all
so haven't the foggiest what I need to do to fix the
problem.

If I am not making myself clear, please feel free to mail
me direct for more info.

I would be extremely grateful if someone could assist
with this.

Many thanks

Sherri
 
Use:

<a href="AddSCChargeType.htm" target="_blank" title="Adding Service Charge -Charge Types" onClick="javascript:window.open
('AddSCChargeType.htm','BookWindow', 'statusbar=no, scrollbars=yes, toolbar=no, menubar=no, resizable=yes');return false;"
style="text-decoration:none">Adding Service Charge 'Charge Types'</a>

Will open the popup and if the user has JavaScript disabled will open a new window using html
--



| I am trying to modify our website so that it uses menus
| to access help demonstration movies.
|
| I have a page which is basically a menu and each item on
| the menu links to the appropriate demonstration move.
|
| The movie opens into a new internet explorer window as
| required but what I want is to get rid of the menu bar
| and toolbar from the window containing the movie.
|
| I was given the following code to use:-
|
| &nbsp;<a href="#" onClick="javascript:window.open
| ('AddSCChargeType.htm','BookWindow', 'statusbar=no,
| scrollbars=yes, toolbar=no, menubar=no, resizable=yes');"
| style="text-decoration:none">Adding Service
| Charge 'Charge Types'</a></font><font face="Verdana"
| color="#FFFFFF" style="font-size: 13pt">
|
| ...which partially works, in that it does open a 'menu
| and toolbar-less' window containing my movie, however it
| then also opens a replica of the original window so I end
| up with three windows in total!!!
|
| This is driving me mad as I do not know HTML code at all
| so haven't the foggiest what I need to do to fix the
| problem.
|
| If I am not making myself clear, please feel free to mail
| me direct for more info.
|
| I would be extremely grateful if someone could assist
| with this.
|
| Many thanks
|
| Sherri
 
Change the script as follows:
<a href="AddSCChargeType.htm" target="_blank"
onClick="javascript:window.open
('AddSCChargeType.htm','BookWindow', 'statusbar=no,
scrollbars=yes, toolbar=no, menubar=no, resizable=yes'); return false;"
style="text-decoration:none">Adding Service
Charge 'Charge Types'</a>
This should all be on one line in HTML view.

The pagename appears twice. If the user has javascript disabled the video
will open in a new window with menubars etc., otherwise only a single pop-up
will appear. The "return false" prevents the hyperlink from activating.

The original script should not open a third window, unless you have a base
target defined elsewhere in the page.

HTH
 
Back
Top