Introduction
to the
Internet

Spring 2006
course
navigation

April 5

-- emailing forms -- < form action="mailto:you_address" enctype="text/plain" > -- some built-in browser DOM objects and properties -- // Change background and foreground colors. document.bgColor = "#FF0000"; document.fgColor = "#00FF00"; // Change page URL window.location = "http://www.marlboro.edu"; // Same as "back" button. window.history.go(-1); // User confirmation answer = window.confirm("Are you sure you want to do that?"); // Obnoxious pop-ups! // See for example http://www.devguru.com/Technologies/ecmascript/quickref/win_open.html window.open("new_page.html", "newWin", "width=300,height=300"); -- JavaScript functions -- function doSomething(input1, input2){ recipe_goes_here; } * getting DOM objects * invoking javascript from links with javascript: url's --------------------------
http://cs.marlboro.edu/ courses/ spring2006/intro_internet/ notes/ apr_5
last modified Thursday August 31 2006 2:24 am EDT