0

I had a page(Home.aspx) containing menu on the top and another master page, with same menu on the top.

Now, when i have to move from Home page to master page, i use

window.location = 'test.aspx';   

Now, when i need to move from master to main(Home) page, i need to call a function with a parameter, containing control url, which has to be loaded to the iframe in the Home page.

Can anybody suggest how can i load Home page and iframe within simultaneously using javascript.

user1042813
  • 117
  • 1
  • 9
  • have you tried placing the javascript in the head? – Ashkan Mobayen Khiabani Dec 24 '11 at 10:20
  • placing javascript will not solve the issue. actually, i need to first load the Home page and then immediately the iframe, which is already placed in the Home page, in single click, and i need the javascript to do the same. – user1042813 Dec 24 '11 at 12:02

1 Answers1

1

If you don't want the user interact with the page until the iframe is loaded, you can disable the page with javascript (onLoad of the page <body onload="disablePage()">) and enable again when the Iframe is loaded (onLoad of the Iframe <iframe onload="enablePage()"... ) Here some post about disable or gray out page: CSS/JavaScript Use Div to grey out section of page

Community
  • 1
  • 1
Jaider
  • 14,268
  • 5
  • 75
  • 82