There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Tag Cloud
access acer asus bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet laptop malware memory modem monitor motherboard netgear network printer problem ram registry repair router slow software sound toshiba trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless xbox
Search
Search for:
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Lost in my javascript path! Help!

Reply  
Thread Tools
cindy123's Avatar
Junior Member with 5 posts.
 
Join Date: Apr 2005
Location: Monument, CO
Experience: Intermediate
16-Sep-2009, 12:31 PM #1
Exclamation Lost in my javascript path! Help!
Site: http://www.thecoloradoweddingguide.com

I don’t know javascript syntax, and I am having a hard time figuring out the path I need.
I am trying to close the index.htm page from my VideoMontages.htm page, because both have .swf audio files that autoplay and compete. So, when VideoMontages is opened,
I want to CLOSE the index.htm file as I do not know enough FLASH to know how to
simply turn the index page sound off from another page.

The complication is there are iframes in between. (From index, go to Directory.htm.
Directory has a menu on the left (menu.html) and a window (mainframe.html) on the right. When you choose Video Montages at the bottom of the menu, it loads into
Mainframe and you will hear the problem!)

Here is the javascript I have been trying:

<script type="text/javascript">
function BodyLoaded()
{
top.opener.close();
}
</script>

I have also tried variations that include (don’t laugh! )
Parent.opener.parent.close()
Opener.parent.parent. close ()
Parent.opener.parent.parent.close()
Parent.opener.opener.opener.close()

Anyway, any help would be greatly appreciated!
Reply

Tags
close page, javascript, path

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 12:41 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.