< HTML Snippets>
popup using button <CENTER><INPUT type="button" Value="Click here for ..."
ONCLICK="window.open('webpage.htm',
'Links','toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width=300,height=450')">
</CENTER>
popup using text link <A HREF="#" onClick="MyWindow=window.open('season_image.asp', 'MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=auto, scrollbars=auto,resizable=no,width=475,height=475,left=200,top=200'); return false;">Click to Preview Larger Image</A>
print page w/graphic <A HREF="#" ONCLICK="window.print();return false"> <IMG SRC="/images/printpage.gif" BORDER="0" WIDTH="117" HEIGHT="31"></A>
print page w/ text <A HREF="#" onClick="window.print();return false">Print this Page</A>
redirect <META http-equiv="refresh"content="15;URL=http://yourwebpage.com">
no index <META NAME="ROBOTS" CONTENT="NOINDEX">
<SCRIPT language="JavaScript">
var requestSubmitted = false;
function checkandsubmit() {
if(requestSubmitted == ue) {
alert("You have already submitted " +
"the request.. Please wait");
return;
}
requestSubmitted = ue;
//test is a name of the form in the example
document.test.submit();
}
</SCRIPT>
form submit w/ image <A HREF="javascript:document.formname.submit()"><img src="/images/submit.gif" width="113"
height="26" border="0"></A>
form reset w/ image <A HREF="javascript:document.formname.reset()"><img src="/images/reset.gif" width="113" height="26"
border="0"></A>
close window w/ image <A HREF="javascript:top.window.close()"><IMG SRC="images/closewindow.gif"
WIDTH="122" HEIGHT="37" BORDER="0"></A>
To add an editable SCRIPT
tag to the HEAD of a template:
1 Open the template (.dwt) file in Dreamweaver.
2 Choose Window > HTML to open the HTML inspector, and then position
the cursor
just before the closing HEAD tag (</head>).
3 Type the following code:
<mm:editable> <SCRIPT> </SCRIPT> </mm:editable> <mm:editable> <!-- Dreamweaver will delete this comment. --> </mm:editable>4 Save the file. When the Dreamweaver dialog asks if it should update files that use this template, click Yes.