Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6346937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:06:49+00:00 2026-05-24T21:06:49+00:00

I am on a work intranet only having to support IE8. I am creating

  • 0

I am on a work intranet only having to support IE8. I am creating a page called "watch video" which (as the name suggests) serves a video to the client. A page linking to a video will open this page in a popup with the link in the url. The person accessing the video (and a datetime stamp) is then logged into the database.

The page is just a simple "Your video will start momentarily, otherwise click here" with the click here having a href of FILE:\\sharedDrive:\somePath\someVideo.wmv. I then automatically open the video by running document.getElementById('anchor').click() to click the anchor. The video then opens in Windows Media Player and i then want to do window.close().

But the page has changed to a blank page because I have clicked the anchor. Do you know how I could close the page after it has redirected? I am trying this:

<script type="text/javascript">
    document.getElementById('watchVideo').click();
    self.close();
</script>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T21:06:50+00:00Added an answer on May 24, 2026 at 9:06 pm

    The best solution that i found (inspired by PualPRO’s answer) was this

    <a id="myAnchor" href="FILE:\\sharedDrive:\somePath\someVideo.wmv" target="myIframe" onclick="setTimeout(function(){window.close()}, 5000)">Watch Video</a>
    
    <iframe name="myIframe" style="display:none;"></iframe>
    
    <script>
        document.getElementById('myAnchor').click();
    </script>
    

    So then on load it automatically clicks the anchor to trigger then events. I put the window.close() inside a setTimeout so that the page had time to load the href before closing itself. Otherwise it would close before opening the file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I work on our intranet, which is continuously being updated with new features or
I work on a large Intranet system - as it is an evolved system
I work at a college that uses an intranet based student management solution not
We have some corporate intranet users using a WinForms app to work on a
background: I work on an asp.net web application that is on a company intranet.
work on asp.net vs 05 C#.Master page header contain the bellow code <script type=text/javascript
Work on a support helpdesk. New tickets come in and records are created in
I work for a webagency, and I have to develop an intranet/extranet app to
We regularly convince our clients of the values of having a good quality intranet
I'm working on an intranet-only web application (J2EE) that requires some basic security features.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.