Forums | Email a Colleague | FAQ

Dr. Website Archives

Dr. Website® Archives 2002

May. 23, 2002
    Question:
    I have a page that has an iframe that loads another website into a scrollable window. What I want to do is to create a textarea below that and when the user is finished entering in the textarea, print both the content of the iframe window, at the top, and, at the bottom, the content of the textarea all in one html page.

    It's okay if it opens up into a new browser window. Can you help me and/or recommend some references? Thanks.

    Answer:
    It is within the capability of the browser to allow the entire page, including the text area AND the iframe, to be printed (the user has to print, and then select the "As laid out on screen" option when they print).

    This is not an elegant solution, but may be your only option aside from scraping the contents of the iframe and creating another document on the fly that include the form content and the iframe content.
    Thanks

    --Dr.Website

    Question:
    Dear Dr. Website:
    Sir in my project i need to disable back button of the browser and i am using I.E 5 and above ..so please let me know how can i disable this. so that my user should not go back

    Answer:
    Understand that the browser was designed to give the end user the ultimate control over their own web experience. With that in mind, they did not build any mechanism that would allow a developer to prevent the use of the back button of the browser.

    About the only way to do this is to open a new window...then there is no "back."
    Thanks,

    --Dr.Website

    Question:
    Dear Dr. Website:
    I have a page loaded in the main browser window. I click on a link which pops open a child window.

    Within that child window is a link that closes the child and redirects the main window to a different page. Is this possible and if so how do you do it.

    I can close the window, but I can't figure out how to carry the link across to the main window..

    Answer:
    Nah, that's not too tricky. ;> <A HREF=# onClick="window.close(); opener.location='http://www.internet.com'; return false;">click</A> Of course you'd change the URL for the opener.location, but that's the ticket.
    Thanks

    --Dr.Website ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ForumsEmail a Colleague · FAQ

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs