[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 306
  • Last Modified:

Simple JavaScript Window.Close() event not firing...

Attached is the file. Is it because of the <noscript> section preceding desired button effect? I know I'm missing something simple.
LPlayer.html
0
groundswell
Asked:
groundswell
  • 3
  • 2
1 Solution
 
Michel PlungjanIT ExpertCommented:
You are no longer allowed to close a window from a page that did not itself open that window using script.
And we are quite happy you cannot since that meant you could close our main browser with all the history and such

So the answer is: You cannot close a window using window.close() unless open by the same domain using a script
0
 
groundswellAuthor Commented:
So, I'm uploading content (this HTML file is the wrapper for that content) to an LMS in a zipped package of multiple files. When a user closes this wrapper, it's unLoad event is sending data to the LMS registering different variables with the system.

You're telling me that because of how this is launched from the LMS I can't put a button on the page to close the window, instead I have to have the users close the spawned window using the window's own close feature (in the case of Windows, the little X in the top right corner)?
0
 
groundswellAuthor Commented:
As an additional note, when a user connects on a link on the LMS, it opens a browser window (this wrapper file that I've attached), and I'm trying to give the users an obvious tool to close the child window and return to the LMS.
0
 
Michel PlungjanIT ExpertCommented:
You as SOL. Sorry
0
 
groundswellAuthor Commented:
No kidding...

Crap.
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now