Click to See Complete Forum and Search --> : How can change values in APPLET tag


MaxRoux
01-27-2003, 02:08 PM
How can I use the screen.availHeight and screen.availWidth values of a page in an APPLET tag on the same page?

I can get the screen values from JS but how do I get them into the height and width variables of the APPLET tag?

Thanks in advance for any suggestions.

Max

khalidali63
01-27-2003, 07:21 PM
Lets see, you might be able to use this hack to get this done,

in the body tagget the values using javascript.
after you closing the </script> tags

add your applet code
and pass the width and height using
PARAM and Value attributes

Logically it sounds like it will work.

Cheers

Khalid

jdavia
01-27-2003, 09:37 PM
Every applet has a name. So you should have this line in your applet. Then add the text shown in bold. You might already have it and overlooked it.

<applet code="Name" width=290 height=290>