Hello, I am creating an input form with various fields. I need to make clickable labels for the fields. When the user clicks on a label (which is a text link), a definition for that item is displayed. I am opening a new window that has the definition. Here's an example of what happens when the user clicks the text link:
Is there any way to size the window based on the length of the definition (instead of setting values for the height and width in the window.open method)? For example, when you use the "alert" window, you simply enter the text - the alert window size is based on the amount of text being displayed. Or is there a way to have an alert box read and display (in an alert window) an html file? Thank you for your assistance.
Code:
msg=window.open("filewithdefinition.html","","scrollbars=0,menubar=0,height=120,width=300,left=260,top=260");
Is there any way to size the window based on the length of the definition (instead of setting values for the height and width in the window.open method)? For example, when you use the "alert" window, you simply enter the text - the alert window size is based on the amount of text being displayed. Or is there a way to have an alert box read and display (in an alert window) an html file? Thank you for your assistance.