I want to use javascript to change the content of a frame from the frameset page, but the above code does not work. urgently need your help. Thanks,Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- function do_write(text2write) { window.frames["screen"].document.write(text2write); } //--> </SCRIPT> <TITLE> Testing Document </TITLE> </HEAD> <FRAMESET ROWS="*,40" COLS=","> <FRAME SRC="screen.html" NAME="screen"> <FRAME SRC="writer.html" NAME="writer"> </FRAMESET> <BODY onload='javascript: do_write("hello world!");'> </BODY> </HTML>
Ji Tao




Bookmarks