'Member not found' javascript error while open document link with IE browser -


in html page there 2 link of documents.

like below:

link 1

link 2

when click on link "link 1" , open document in new windows , minimize , , again click on "link 2" out closing previous window. give me 'member not found' javascript error in ie 6/7/8 browsers

after had goggling issue , got solution , check below

//below code before solution:

var viewerurl = "url"; win = window.open(viewerurl, 'subwindow', 'directories=no, status=no'); win.focus(); 

//after applying solution code below

var progressmsgurl = "url"; win = window.open(viewerurl, 'subwindow', 'directories=no, status=no'); if(win==null || win.closed) {  win.focus(); } 

right above code not giving me java script error in ie 6/7/8.

but stop focus of windows in browsers.it means when open 1 link 1 documents in 1 windows , minimize , again open link 2 document ,it open newly opened windows refreshing remain in minimize mode, user not getting intimate that.

i want expected solution : not giving me 'member not found' javascript error in ie 6/7/8 browsers, win.focus(); working in browsers.

pls me resolve issue.

thanks in advance yatin baraiya

if need last clicked url window have focus code should be

var progressmsgurl = "url"; win = window.open(viewerurl, 'subwindow', 'directories=no, status=no'); if(win!=null) {  win.focus(); } 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -