Hi everyone,
From a main screen, when users click an anchor, a popup window named ExtraWin is invoked and displays some data. I want to create 2 commands: "Close Window" and "Print Doc" in that popup window so that when users click "Close Window", the window will close, and when users click "Print Doc" the data in popup window is printed.
Questions:
1) How do I continue to code to display these two commands in the popup window?
2) How do I code to close the popup window?
3) How do I code to print the data displayed in the popup window?
My PopupWindow function is as follows:
function PopUpWindow(ddnnum,FromCol,ToCol,FieldSize,FieldFormat,BookName)
{
ExtraWin = window.open("", "_blank", config='width=600,height=600,left=200,top=150');
ExtraWin.document.write("<H1> Field Information </H1>"
;
ExtraWin.document.write("<b>" + "DDN Number : " + "</b>" + ddnnum + "<br></br>"
;
ExtraWin.document.write("<b>" + "From Col : " + "</b>" + FromCol + "<br></br>"
;
ExtraWin.document.write("<b>" + "To Col : " + "</b>" + ToCol + "<br></br>"
;
ExtraWin.document.write("<b>" + "Field Size: " + "</b>" + FieldSize + "<br></br>"
;
ExtraWin.document.write("<b>" + "Field Format: " + "</b>" + FieldFormat + "<br></br>"
;
ExtraWin.document.write("<b>" + "Book Name: " + "</b>" + BookName + "<br></br>"
;
}
Thank you for your help.
adhp55555
From a main screen, when users click an anchor, a popup window named ExtraWin is invoked and displays some data. I want to create 2 commands: "Close Window" and "Print Doc" in that popup window so that when users click "Close Window", the window will close, and when users click "Print Doc" the data in popup window is printed.
Questions:
1) How do I continue to code to display these two commands in the popup window?
2) How do I code to close the popup window?
3) How do I code to print the data displayed in the popup window?
My PopupWindow function is as follows:
function PopUpWindow(ddnnum,FromCol,ToCol,FieldSize,FieldFormat,BookName)
{
ExtraWin = window.open("", "_blank", config='width=600,height=600,left=200,top=150');
ExtraWin.document.write("<H1> Field Information </H1>"
ExtraWin.document.write("<b>" + "DDN Number : " + "</b>" + ddnnum + "<br></br>"
ExtraWin.document.write("<b>" + "From Col : " + "</b>" + FromCol + "<br></br>"
ExtraWin.document.write("<b>" + "To Col : " + "</b>" + ToCol + "<br></br>"
ExtraWin.document.write("<b>" + "Field Size: " + "</b>" + FieldSize + "<br></br>"
ExtraWin.document.write("<b>" + "Field Format: " + "</b>" + FieldFormat + "<br></br>"
ExtraWin.document.write("<b>" + "Book Name: " + "</b>" + BookName + "<br></br>"
}
Thank you for your help.
adhp55555