Open hyperlink in new window of a given size

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Is it possible to include a button in a Powerpoint presentation that opens a
browser window with a specific width and height? That is, can the following
web-code be translated into something similar in VB:

<INPUT type="button" value="Buttonname"
onClick="window.open('http://www.xxx.xxx',
'Windowname','width=678,height=500')">

Thanks in advance.
 
Anne Marie, hello...

I find easier to force the HTML document or page to resize itself; thus...

1. Place the text or button and link it to the .html file,

2. In the .html file to be displayed in the browser window, place this tag
in the source code :

<script Language="JavaScript">
var Width=678;
var Height=500;
self.moveTo((screen.availWidth-Width)/2,(screen.availHeight-Height)/2);
self.resizeTo(Width,Height);
</script>

The browser window will self resize and will self-center above the slide.

Regards,

Gus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top