9 Javascripts You Better Not Miss!
By Kiran Pai2005-06-11
Example 5 : Making the Output of a program (servlet/cgi program) to appear in a new frame
This script is used by most many programmers. I haven't found this script to be very helpful, since I try my best to avoid using frames on my website. Frames are to be avoided whenever, wherever possible. And I always manage without them.
| <HTML> <FRAMESET COLS="20%,*"> <FRAME SRC="leftindex.html" NAME="Left frame" > <FRAME SRC="rightindex.html" NAME="Right frame"> </FRAMESET> </HTML> |
Below is the source of leftindex.html
| <HTML> <BODY> <FORM NAME="Myform" METHOD=GET ACTION="http://www.kiranpai.com/servlet1" onSubmit="document.myform.target = 'Right frame'> <INPUT TYPE=SUBMIT VALUE="Clicking in left frame but Output in Right frame"> </FORM> </BODY> </HEAD> |
Tutorial Pages:
» 9 Javascripts you better not miss!
» Example 1 : A Single click for checking-unchecking multiple check boxes
» Example 2 : Opening a page (existing as well as dynamic) in a new window without bars, buttons, etc.
» Example 3 : Multiple submit buttons on a single form (Submitting same form to any one of many programs)
» Example 4 : Emulating Browsers Back-Forward buttons
» Example 5 : Making the Output of a program (servlet/cgi program) to appear in a new frame
» Example 6 : Displaying a Countdown using Javascript
» Example 7 : Changing images with MouseOver and MouseOut events
» Example 8 : Checking the form contents before submitting the form
» Example 9 : Filling the values of a dropdown SelectMenu depending on the selection in another Menu
