Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Javascript or code to close current browser when hyperlink is clicked

Explorer ,
Feb 17, 2007 Feb 17, 2007
Hi All,

I could really do with some assistance with the attached -

I've built an application, which includes custom banners, which when clicked open a new set size browser which includes - banner, company information & hyperlink to the associated website.

My client has asked if it is possible for the original set sixe banner browser to automatically close and the new website open in a new browser when the hyperlink is clicked. (thus leaving only the original application & the new website as open browsers & not the set size browser)
I'm sure that there is some javascript or html code that will allow this to happen, and would be grateful for any help available -

thanks all
TOPICS
Server side applications
309
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 17, 2007 Feb 17, 2007
Most browsers won't let you close the parent window programatically.
Although, I belive there's a loophole in IE7 that allows it to happen.

--
Jules
http://www.charon.co.uk/charoncart
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004




Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 17, 2007 Feb 17, 2007
You would have to clear the browser's cache to do it. It's pretty rude any
way you cut it for an internet page to do this.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"Julian Roberts" <nospam@charon.co.uk> wrote in message
news:er78ra$5ua$1@forums.macromedia.com...
> Most browsers won't let you close the parent window programatically.
> Although, I belive there's a loophole in IE7 that allows it to happen.
>
> --
> Jules
> http://www.charon.co.uk/charoncart
> Charon Cart 3
> Shopping Cart Extension for Dreamweaver MX/MX 2004
>
>
>
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 17, 2007 Feb 17, 2007
LATEST
Here's the code:

<script>
window.open('','_parent','');
window.close();
</script>

But, I'm pretty sure it'll only "work" in IE7. ie. It's a bug in IE7, don't
think this happened in earlier versions.

--
Jules
http://www.charon.co.uk/charoncart
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004



Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines