Javascript Section Index | Page 6
How can i get (change run time) tool tip text of buttons created in HTML?
This works as an example of changing the title property of a button dynamically
<html>
<head>
<title>Test</title>
<script language="javascript">
function updateTipT...more
How can I trigger submit button thruough the Enter key in both Netscape and Internet Explorer?
This script works both in IE and NS because of the evt.which (IE) and evt.keyCode (NS) enjoy:
<SCRIPT LANGUAGE="JavaScript1.3">
//Enter-listener
if (document.layers)
document.captureEven...more
Are there any FAQs out there on Cascading Style Sheets (CSS)?
Here are a few:
HTML Writer's Guild
Index DOT Css by Brian Wilson
RichInStyle.com
more
How can I capture the F5/Refresh key?
Use the following code.
<head>
<script language="javascript">
///for IE
function test()
{
if(event.keyCode == 116)
{
///do anything
}
}
///for Netscape
window.captureEven...more
How can I change the mouse cursor?
<a style="cursor:[auto,crosshair,default,hand,move,text,wait,help,e-resize,sw-resize,....]"></a>
How can I get the values into the 3 combo boxes I am using dynamically from a database?
How can I get the values into the 3 combo boxes I am using dynamically from a database?
The criteria here is:
The second combo box is dependent on first combo box, and the third combo box is depend...more
How can I invoke the functions in one frame from the other?
From the first frame, you can invoke the methods in the other frame like:
parent.otherFrameName.functionInOtherFrame();
How can I replace the selected word in a textarea from JavaScript?
A solution that works in IE5+. Credit goes to Dave Clark.
<HTML>
<HEAD>
<TITLE>replace</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--//
var seltext = null;
var replt...more
I have four text fields in my form. When the user enters some value in any one of the fields, I want to disable other text fields. How can I get this to work in both Netscape and IE?
The below code works in Netscape and IE:
<html>
<head>
<title>form1</title>
<script language="JavaScript">
var flg = false;
function chk(){
var field = window.docum...more
How do I use print templates?
The Microsoft Print Template reference is available from
http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/hosting/printpreview/reference/reference.asp. http://www.webreference....more
What are print templates?
According to The Microsoft Print Template reference (http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/hosting/printpreview/reference/reference.asp)
Beginning in Microsoft Inter...more
How do I get a print preview window to display from JavaScript?
Hope this helps:
<html>
<head>
<title>Print Preview</title>
<script>
function printpr()
{
var OLECMDID = 7;
/* OLECMDID values:
* 6 - print
* 7 - print preview
...more
Where can I find a list of non-dithering / web-safe colors?
Non-dithering Colours by Ross Shannon is one such place. There are other locations out there.
Is there a way to print a report using landscape mode instead of potraint mode using JavaScript?
Sorry, but you can't control the printer software with JavaScript.
Which web servers support server side JavaScript?
Which web servers support server side JavaScript?