Hi there.
I have a bit of HTML/JavaScript that opens a window, and generates a form dynamically using CGI:
The cgi script creates a dynamic form, that will require a different display area depending on the fonts used by the browser, and the variables passed in.
My question is this: What is the best way to dynamically wrap the window to its contents? Perhaps some onLoad code, that figures out the dimensions? Any browser neutral code examples would be most appreciated
Thanks, NEIL
I have a bit of HTML/JavaScript that opens a window, and generates a form dynamically using CGI:
Code:
<input
type=button
value=dynamic
onclick="window.open('/cgi/dynamicform.pl?var1=me&var2=myself&var3=i', 'dynamic', 'width=300,height=300,resizable')"
>
The cgi script creates a dynamic form, that will require a different display area depending on the fonts used by the browser, and the variables passed in.
My question is this: What is the best way to dynamically wrap the window to its contents? Perhaps some onLoad code, that figures out the dimensions? Any browser neutral code examples would be most appreciated
Thanks, NEIL