How can I dynamically change the height of an iFrame?

How to Scale a Link, which opens in an Iframe, to 50% of its original Width and Height?

  • Hello World, Happy Sunday! So if you visit http://www.mymanchesteruniverse.co.uk you will see an iphone at the bottom of the page. The music icon should link to http://music.mymanchesteruniverse.co.uk. What i need to do is resize only this link so the page shows normal size, yet scaled down to about 50% of its normal width and height while fitting in the iPhone iframe perfect. (trying to make it look like an iPhone formated page, which it is, just not fitting right here) The code for the button/link is in this div <div id="apDiv4" onclick="window.open('http://music.myman… '_self', 'scale=50')"></div> If anyone can help me modify the code (and replace my 'scale=50', as that didn't work) The whole team at MyManchesterUniverse would be very grateful. Cheers, Nick http://www.NickGarofalo.com

  • Answer:

    <a href="javascript:void(0)" onclick="window.open('http:....destinati… width=500,scrollbars=no')">Link Name</a> width and height works in pixels, i don't know if works in percent %

thekid13... at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.