Ask Question Forum:
Model Library:2025-02-08 Updated:A.I. model is online for auto reply question page
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by duncanb7
at 2024-11-11 12:23:08
Point:250 Replies:13 POST_ID:828417USER_ID:11059
Topic:
Hypertext Markup Language (HTML);;JavaScript
First time, When I create input box, and type production No, for example, 666666 and then
redirect other new webpage according to input box's input into second frame in the same IE window. My question is When I type second times, for example, 1213458, I need click the input box first and then backspace the first edit in the input box like 6666666 until empty box and then type seond time eidt like 1213458. IS there any way in html or javascript can let the input box edit without need to
backspace to erase previous edit. Like when mouse clicking input box area and then automatically erase the input box's previous edit . That will help to be user friendly feature
Second question, how to highligh or give background color for the input box 's text value in the input box when mouse is clicking
Please advise
Duncan
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Developer Studio">
<META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
<TITLE>Document Title</TITLE>
<script>
function formSubmit(frm)
{
document.getElementById("frame1").src="http://www.mywebsite.com/"+frm.text1.value+".htm";
return false;
}
</script>
</HEAD>
<body>
<form onsubmit="return formSubmit(this)">
<input type="text" name="text1">
<input type="submit" name="submit">
</form>
<iframe width="600" border="0px" id="frame1">
</body>
</HTML>
redirect other new webpage according to input box's input into second frame in the same IE window. My question is When I type second times, for example, 1213458, I need click the input box first and then backspace the first edit in the input box like 6666666 until empty box and then type seond time eidt like 1213458. IS there any way in html or javascript can let the input box edit without need to
backspace to erase previous edit. Like when mouse clicking input box area and then automatically erase the input box's previous edit . That will help to be user friendly feature
Second question, how to highligh or give background color for the input box 's text value in the input box when mouse is clicking
Please advise
Duncan
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Developer Studio">
<META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
<TITLE>Document Title</TITLE>
<script>
function formSubmit(frm)
{
document.getElementById("frame1").src="http://www.mywebsite.com/"+frm.text1.value+".htm";
return false;
}
</script>
</HEAD>
<body>
<form onsubmit="return formSubmit(this)">
<input type="text" name="text1">
<input type="submit" name="submit">
</form>
<iframe width="600" border="0px" id="frame1">
</body>
</HTML>
Author: duncanb7 replied at 2024-11-13 04:21:23
Do you tink I use onkeydown in Javascript that will help
to erase the previous value once the previous webpage search is done so
it is not neccessary the user to click input box again since it is done by onkeydonw
detecting the enter key of "13"
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Testing Input Box</title>
<TITLE>Document Title</TITLE>
<script>
function formSubmit(frm)
{
document.getElementById("frame1").src="http://www.e-hftrade.com/"+frm.text1.value+".htm";
onkeydown="if (event.keyCode==13) {frm.text1.value=''}"
return false;
}
</script>
</HEAD>
<body>
<style>
.highlighted { background-color:white; }
</style>
<form onsubmit="return formSubmit(this)">
<input type="text" name="text1" value="0000" onclick="this.value=''; this.className='highlighted'"
onblur="if(this.value=='')this.value=this.defaultValue; this.className=''" />
<input type="submit" name="submit" >
</form>
<iframe height="700" width="1400" scrolling="no" border="0px" id="frame1" src="http://www.website.com/index.htm">
</body>
to erase the previous value once the previous webpage search is done so
it is not neccessary the user to click input box again since it is done by onkeydonw
detecting the enter key of "13"
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Testing Input Box</title>
<TITLE>Document Title</TITLE>
<script>
function formSubmit(frm)
{
document.getElementById("frame1").src="http://www.e-hftrade.com/"+frm.text1.value+".htm";
onkeydown="if (event.keyCode==13) {frm.text1.value=''}"
return false;
}
</script>
</HEAD>
<body>
<style>
.highlighted { background-color:white; }
</style>
<form onsubmit="return formSubmit(this)">
<input type="text" name="text1" value="0000" onclick="this.value=''; this.className='highlighted'"
onblur="if(this.value=='')this.value=this.defaultValue; this.className=''" />
<input type="submit" name="submit" >
</form>
<iframe height="700" width="1400" scrolling="no" border="0px" id="frame1" src="http://www.website.com/index.htm">
</body>
Expert: _alias99 replied at 2024-11-12 19:24:37
duncanb7,
Please award points to any responses that answer the original question you have posted here (the question at the top of this thread).
This should be your only consideration in awarding points.
For any new/additional question you should use a seperate thread.
Experts,
Please post your recommendations for closing this question after my comment here.
Thank you,
_alias99
Comunity SUpport Moderator
Please award points to any responses that answer the original question you have posted here (the question at the top of this thread).
This should be your only consideration in awarding points.
For any new/additional question you should use a seperate thread.
Experts,
Please post your recommendations for closing this question after my comment here.
Thank you,
_alias99
Comunity SUpport Moderator
Author: duncanb7 replied at 2024-11-12 03:12:46
Please help and advise
Author: duncanb7 replied at 2024-11-12 03:11:38
Anyway, ii ncrease the point , please reply it for the new thread and score it for you 500 including this answer in this thread
Expert: TiberiuGal replied at 2024-11-12 02:17:24
Hi,
This thread already got answered, so there's no reason moving it.
Just create a new thread for the remaining questions.
This thread already got answered, so there's no reason moving it.
Just create a new thread for the remaining questions.
Author: duncanb7 replied at 2024-11-12 02:12:30
Dear TiberiuGal and sam2912,
I will delete this thread since I will make new thread and increase point of the thread and
write it cleary for the remining question. And sorry, this thread and code has a lot of typing
error and not clear enough. Please switch to the new thread and Advise at
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/HTML/Q_26610335.html
Thanks
Duncan
I will delete this thread since I will make new thread and increase point of the thread and
write it cleary for the remining question. And sorry, this thread and code has a lot of typing
error and not clear enough. Please switch to the new thread and Advise at
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/HTML/Q_26610335.html
Thanks
Duncan
Expert: sam2912 replied at 2024-11-11 18:47:41
TS, you are trying to link multiple questions in this thread. Plus, it is worth lower than-average points. It is highly recommended you split this up.
Author: duncanb7 replied at 2024-11-11 15:55:49
Do you tink I use onkeydown in Javascript that will help
to erase the previous value once the previous webpage search is done so
it is not neccessary the user to click input box again since it is done by onkeydonw
detecting the enter key of "13"
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Testing Input Box</title>
<TITLE>Document Title</TITLE>
<script>
function formSubmit(frm)
{
document.getElementById("frame1").src="http://www.e-hftrade.com/"+frm.text1.value+".htm";
onkeydown="if (event.keyCode==13) {frm.text1.value=''}"
return false;
}
</script>
</HEAD>
<body>
<style>
.highlighted { background-color:white; }
</style>
<form onsubmit="return formSubmit(this)">
<input type="text" name="text1" value="0000" onclick="this.value=''; this.className='highlighted'"
onblur="if(this.value=='')this.value=this.defaultValue; this.className=''" />
<input type="submit" name="submit" >
</form>
<iframe height="700" width="1400" scrolling="no" border="0px" id="frame1" src="http://www.website.com/index.htm">
</body>
to erase the previous value once the previous webpage search is done so
it is not neccessary the user to click input box again since it is done by onkeydonw
detecting the enter key of "13"
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Testing Input Box</title>
<TITLE>Document Title</TITLE>
<script>
function formSubmit(frm)
{
document.getElementById("frame1").src="http://www.e-hftrade.com/"+frm.text1.value+".htm";
onkeydown="if (event.keyCode==13) {frm.text1.value=''}"
return false;
}
</script>
</HEAD>
<body>
<style>
.highlighted { background-color:white; }
</style>
<form onsubmit="return formSubmit(this)">
<input type="text" name="text1" value="0000" onclick="this.value=''; this.className='highlighted'"
onblur="if(this.value=='')this.value=this.defaultValue; this.className=''" />
<input type="submit" name="submit" >
</form>
<iframe height="700" width="1400" scrolling="no" border="0px" id="frame1" src="http://www.website.com/index.htm">
</body>
Author: duncanb7 replied at 2024-11-11 14:15:06
Do you tink I use onkeydown in Javascript that will help
to erase the previous value once the previous webpage search is done so
it is not neccessary the user to click input box again since it is done by onkeydonw
detecting the enter key of "13"
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Testing Input Box</title>
<TITLE>Document Title</TITLE>
<script>
function formSubmit(frm)
{
document.getElementById("frame1").src="http://www.e-hftrade.com/"+frm.text1.value+".htm";
onkeydown="if (event.keyCode==13) {frm.text1.value=''}"
return false;
}
</script>
</HEAD>
<body>
<style>
.highlighted { background-color:white; }
</style>
<form onsubmit="return formSubmit(this)">
<input type="text" name="text1" value="0000" onclick="this.value=''; this.className='highlighted'"
onblur="if(this.value=='')this.value=this.defaultValue; this.className=''" />
<input type="submit" name="submit" >
</form>
<iframe height="700" width="1400" scrolling="no" border="0px" id="frame1" src="http://www.website.com/index.htm">
</body>
to erase the previous value once the previous webpage search is done so
it is not neccessary the user to click input box again since it is done by onkeydonw
detecting the enter key of "13"
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Testing Input Box</title>
<TITLE>Document Title</TITLE>
<script>
function formSubmit(frm)
{
document.getElementById("frame1").src="http://www.e-hftrade.com/"+frm.text1.value+".htm";
onkeydown="if (event.keyCode==13) {frm.text1.value=''}"
return false;
}
</script>
</HEAD>
<body>
<style>
.highlighted { background-color:white; }
</style>
<form onsubmit="return formSubmit(this)">
<input type="text" name="text1" value="0000" onclick="this.value=''; this.className='highlighted'"
onblur="if(this.value=='')this.value=this.defaultValue; this.className=''" />
<input type="submit" name="submit" >
</form>
<iframe height="700" width="1400" scrolling="no" border="0px" id="frame1" src="http://www.website.com/index.htm">
</body>
Author: duncanb7 replied at 2024-11-11 14:13:29
Do you tink I use onkeydown in Javascript that will help
to erase the previous value once the previous webpage search is done so
it is not neccessary the user to click input box again since it is done by onkeydonw
detecting the enter key of "13"
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Testing Input Box</title>
<TITLE>Document Title</TITLE>
<script>
function formSubmit(frm)
{
document.getElementById("frame1").src="http://www.e-hftrade.com/"+frm.text1.value+".htm";
onkeydown="if (event.keyCode==13) {frm.text1.value=''}"
return false;
}
</script>
</HEAD>
<body>
<style>
.highlighted { background-color:white; }
</style>
<form onsubmit="return formSubmit(this)">
<input type="text" name="text1" value="0000" onclick="this.value=''; this.className='highlighted'"
onblur="if(this.value=='')this.value=this.defaultValue; this.className=''" />
<input type="submit" name="submit" >
</form>
<iframe height="700" width="1400" scrolling="no" border="0px" id="frame1" src="http://www.website.com/index.htm">
</body>
to erase the previous value once the previous webpage search is done so
it is not neccessary the user to click input box again since it is done by onkeydonw
detecting the enter key of "13"
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Testing Input Box</title>
<TITLE>Document Title</TITLE>
<script>
function formSubmit(frm)
{
document.getElementById("frame1").src="http://www.e-hftrade.com/"+frm.text1.value+".htm";
onkeydown="if (event.keyCode==13) {frm.text1.value=''}"
return false;
}
</script>
</HEAD>
<body>
<style>
.highlighted { background-color:white; }
</style>
<form onsubmit="return formSubmit(this)">
<input type="text" name="text1" value="0000" onclick="this.value=''; this.className='highlighted'"
onblur="if(this.value=='')this.value=this.defaultValue; this.className=''" />
<input type="submit" name="submit" >
</form>
<iframe height="700" width="1400" scrolling="no" border="0px" id="frame1" src="http://www.website.com/index.htm">
</body>
Author: duncanb7 replied at 2024-11-11 14:10:49
Do you tink I use onkeydown in Javascript that will help
to erase the previous value once the previous webpage search is done so
it is not neccessary the user to click input box again since it is done by onkeydonw
detecting the enter key of "13"
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Testing Input Box</title>
<TITLE>Document Title</TITLE>
<script>
function formSubmit(frm)
{
document.getElementById("frame1").src="http://www.e-hftrade.com/"+frm.text1.value+".htm";
onkeydown="if (event.keyCode==13) {frm.text1.value=''}"
return false;
}
</script>
</HEAD>
<body>
<style>
.highlighted { background-color:white; }
</style>
<form onsubmit="return formSubmit(this)">
<input type="text" name="text1" value="0000" onclick="this.value=''; this.className='highlighted'"
onblur="if(this.value=='')this.value=this.defaultValue; this.className=''" />
<input type="submit" name="submit" >
</form>
<iframe height="700" width="1400" scrolling="no" border="0px" id="frame1" src="http://www.website.com/index.htm">
</body>
to erase the previous value once the previous webpage search is done so
it is not neccessary the user to click input box again since it is done by onkeydonw
detecting the enter key of "13"
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Testing Input Box</title>
<TITLE>Document Title</TITLE>
<script>
function formSubmit(frm)
{
document.getElementById("frame1").src="http://www.e-hftrade.com/"+frm.text1.value+".htm";
onkeydown="if (event.keyCode==13) {frm.text1.value=''}"
return false;
}
</script>
</HEAD>
<body>
<style>
.highlighted { background-color:white; }
</style>
<form onsubmit="return formSubmit(this)">
<input type="text" name="text1" value="0000" onclick="this.value=''; this.className='highlighted'"
onblur="if(this.value=='')this.value=this.defaultValue; this.className=''" />
<input type="submit" name="submit" >
</form>
<iframe height="700" width="1400" scrolling="no" border="0px" id="frame1" src="http://www.website.com/index.htm">
</body>
Author: duncanb7 replied at 2024-11-11 14:06:41
Do you tink I use onkeydown in Javascript that will help
to erase the previous value once the previous webpage search is done so
it is not neccessary the user to click input box again since it is done by onkeydonw
detecting the enter key of "13"
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Testing Input Box</title>
<TITLE>Document Title</TITLE>
<script>
function formSubmit(frm)
{
document.getElementById("frame1").src="http://www.e-hftrade.com/"+frm.text1.value+".htm";
onkeydown="if (event.keyCode==13) {frm.text1.value=''}"
return false;
}
</script>
</HEAD>
<body>
<style>
.highlighted { background-color:white; }
</style>
<form onsubmit="return formSubmit(this)">
<input type="text" name="text1" value="0000" onclick="this.value=''; this.className='highlighted'"
onblur="if(this.value=='')this.value=this.defaultValue; this.className=''" />
<input type="submit" name="submit" >
</form>
<iframe height="700" width="1400" scrolling="no" border="0px" id="frame1" src="http://www.website.com/index.htm">
</body>
to erase the previous value once the previous webpage search is done so
it is not neccessary the user to click input box again since it is done by onkeydonw
detecting the enter key of "13"
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Testing Input Box</title>
<TITLE>Document Title</TITLE>
<script>
function formSubmit(frm)
{
document.getElementById("frame1").src="http://www.e-hftrade.com/"+frm.text1.value+".htm";
onkeydown="if (event.keyCode==13) {frm.text1.value=''}"
return false;
}
</script>
</HEAD>
<body>
<style>
.highlighted { background-color:white; }
</style>
<form onsubmit="return formSubmit(this)">
<input type="text" name="text1" value="0000" onclick="this.value=''; this.className='highlighted'"
onblur="if(this.value=='')this.value=this.defaultValue; this.className=''" />
<input type="submit" name="submit" >
</form>
<iframe height="700" width="1400" scrolling="no" border="0px" id="frame1" src="http://www.website.com/index.htm">
</body>
Accepted Solution
Expert: TiberiuGal replied at 2024-11-11 13:30:37
250 points EXCELLENT