www.webdeveloper.com
Results 1 to 1 of 1

Thread: Reusing same window using window.open()

Hybrid View

  1. #1
    Join Date
    May 2013
    Posts
    1

    Unhappy Reusing same window using window.open()

    I attached sample htm page in which when you click on link it open it will show yahoo.com page, next time when you click same link it will reload yahoo page in same window.

    so in this sample it is reusing same window and not opening new browser window over and over becuase it has code to open yahoo window with windowname,
    window.open('http://www.yahoo.com', 'WinName');

    problem is i have other website url if i put that url instead of yahoo.com in this code, it is opening new browser window over and over again, it seems like when we open window with name WinName and page load that page javascript is changing page name so next time when we open window with name=WinName it does not find any window with this name and open up new window.

    so i need some way so that it should reuse same window even when content of page we are loading is changing window.name and if this is not possible with this way then also tell if any other way exist to achieve this.

    << please change attached txt file extension to htm to run it browser i had to rename it to txt as htm attachment is not allowed"


    Thanks for reading my post....
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles