Close a frameset for certain pages

Using a frame set as follows to play an MP3 file, how can it be closed for certain pages , or how can I put a control to turn it off?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
   "http://www.w3.org/TR/html4/frameset.dtd">
<HTML>
<HEAD>
<TITLE>A simple frameset document</TITLE>
</HEAD>
<FRAMESET cols="0%, *">
      <FRAME src="pagewithmusic.html">
      <FRAME src="yourwebsite.html">
  </FRAMESET>
  <NOFRAMES>
      <P>Frames not supported
  </NOFRAMES>
</FRAMESET>
</HTML>
cbrick04Asked:
Who is Participating?
 
ravi_raj123Connect With a Mentor Commented:
You can use this code in everything page where you want the music

<embed name="lostmojo"
src="musicfile.wav"
loop="true"
width="0"
height="0"
hidden="true"
autostart="true">
</embed>

Hope this helps you.

Good luck,
Ravi

0
 
LeeKowalkowskiCommented:
You can make the links to the pages where the music that is not required overwrite the frameset, e.g. <a href="pagewithoutmusic.html" target="_top">Go somewhere else</a>.

--
Lee
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.