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.

2
  • have you tried placing the javascript in the head? Commented Dec 24, 2011 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. Commented Dec 24, 2011 at 12:02

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.