faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

13 of 18 people (72%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

In IE 5.5 How to find (search) the string in the parent window using Modal window

Apr 6th, 2008 19:33
ha mo, Ole Clausen, SARMA BESTRAPALLI,


You can send a reference to the opening window-object along as the 
variant-argument, when You open the modalDialog:
var myString = "Hello Sarma";
window.showModalDialog("your_page.html", this, "...features goes 
here...");
The second argument 'this' now referes to the opening window and can be 
used in the modalDialog (your_page.html) like this:
var parWin = window.dialogArguments;
alert(parWin.myString);
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com