It is important when copying JavaScript code not to pick up extraneous RETURN characters that you may get by using the versions displayed in the browser window. Use these examples to copy and paste successfully!
Select all of the HTML below, Copy, and then return to your HTML document to Paste the code.
<li><a href="term_1.html" onClick="alert('A caldera is a circular shaped landform depression caused by the eruption of a large, near surface body of magma.'); return false" onMouseOver="window.status='what is a caldera?'; return true">caldera</a> <li><a href="term_2.html" onClick="alert('Vesicularity is a measure how much of a rock volume consists of air chambers.'); return false" onMouseOver="window.status='what is vesicularity?'; return true">vesicularity</a> <li><a href="term_3.html" onClick="alert('Pahoehoe is a type of basaltic lava flow texture that comes from the Hawaiian word for smooth and ropy.'); return false" onMouseOver="window.status='what is pahoehoe?'; return true">pahoehoe</a> <li><a href="term_4.html" onClick="alert('Rheology is the study of how materials deform.'); return false" onMouseOver="window.status='what is rheology?'; return true">rheology</a> <li><a href="term_5.html" onClick='alert("A lahar is a mudslide generated from the flanks of a volcano. Some say it comes from the phrase \"Look Out!\" in the Indonesian language."); return false' onMouseOver="window.status='what is a lahar?'; return true">lahar</a>
Writing HTML: Lesson 27a: A Wee Dose of JavaScript
©1994-2002
Maricopa Center for Learning and Instruction (MCLI)
Maricopa Community Colleges
Questions? Comments? Visit our feedback center
URL: http://www.mcli.dist.maricopa.edu/tut/tut27a_ex/cut3.html
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 2.5 License.