Hello,
I'm trying to perform a substring on a string variable. I want to extract a part of the string till a specific character is found within the string.(the pipe character '|' in this case)
Currently, I'm using the index function to supply the Length argument:
my $cd = substr($_, 0...
I am trying to get some statements executed in a case a form box is empty and I tried comparing the value (theform.thebox.value) to null, NaN, undefined but it doesn't seem to work. Anybody know how to do it?
if (theform.thebox.value == null)
alert("You got it!");
else...
I am trying to get some data from the opener window, like form values, without adding any code to the opener. I tried this:
alert(opener.form1[0].value);
and
alert(opener.document.form1[0].value);
and
var a = opener.document.form1[0].value;
alert(a);
None of this seems to work. It's...
I am trying to create a little browser based program to evaluate performance. I put asterisks inside divs and absolutely positioned them inside another div. That makes it look like a chart. What I would like to do is connect those asterisks with lines for it to be more clear. Can it be done...
I can't get this to work in Netscape. What is wrong? Can you not change the background color in Netscape dynamically?
[code]
<div id="box1" style="background-color:#ccffcc;">
This is box 1
</div>
<script language="JavaScript">
function color() {
if...
I can't get this to work in Netscape. What is wrong?
[code]
<div id="box1" style="background-color:#ccffcc;">
This is box 1
</div>
<script language="JavaScript">
function color() {
if (document.all) {
box1.style.backgroundColor="blue"; }
else {...
I've been trying to open a new window and move it toward the center. It will not move and I get an error. What am I doing wrong? Thanks.
<html>
<head>
<script language="JavaScript">
function newwin() {...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.