When attempting to close the splash page using javascript:splashpage.closeit(), I have placed this on the actual splash page rather than in the javascript file - it's not working, how can I get it to work in the normal splash page URL?
When attempting to close the splash page using javascript:splashpage.closeit(), I have placed this on the actual splash page rather than in the javascript file - it's not working, how can I get it to work in the normal splash page URL?
Warning: Please include a link to the DD script in question in your post, in this case: http://www.dynamicdrive.com/dynamici...amicsplash.htm . See this thread for the proper posting format when asking a question.
To your question, is the document shown inside the splash page on the same domain as the parent page containing the splash script? If not then unfortunately you can't embed a button inside the contained document to close it, due to JavaScript's same-origin security policies. If it is, then you can modify the original close button code to the following to get it to work:
Code:javascript:parent.splashpage.closeit()
DD Admin
Brilliant thanks, it's working perfect now![]()
Bookmarks