You can put the input element before javascript code.
[code=javascript]
<input name="namedispl ay" type="text" id="namedisplay " value="" />
<script type="text/javascript">
function getname(){
var name = prompt('What is your name?');
while(name=='') {
name = prompt('We need your name?');
}...
User Profile
Collapse
-
Hi...
It is something wrong with your javascript code,move your javascript code and try again.Leave a comment:
-
In fact,vertical-align is used for tables,it is useless in divs.Leave a comment:
-
《Professional.J avaScript.For.W eb.Developers》b y Nicholas C. Zakas
I think this book is very good.You can buy this book in http://www.wrox.com/WileyCDA/WroxTitle/productCd-0764579088.htmlLeave a comment:
-
Hi...
There's some code may be help you on the blow.
[code=javascript]
<html>
<head>
<script language="JavaS cript">
function changeRadioButt on(el){
var iDays;
if (el.value == 'week'){
iDays = 7
}else if(el.value == 'month'){
iDays = 14
}else{
iDays = 0;
}
var myDate=new Date()
myDate.setDate( myDate.getDate( )+...Leave a comment:
-
[code=javascript]
var txtarea = document.getEle mentsByTagName( "textarea")[0];
var len = txtarea.length;
if(len>500){
textarea.value = textarea.value. subString(0,500 );
}
[/code]
But I don't know what's the "paragraph wise" mean.Leave a comment:
-
-
I think it is impossible.Leave a comment:
-
Hi,there is some code will help you on the below.
[CODE=javascript]<SCRIPT>
function makevisible(cur ,which){
if (which==0)
cur.filters.alp ha.opacity=90
else
cur.filters.alp ha.opacity=40
if (which==2)
cur.filters.alp ha.opacity=0
}
function listinfo(el){
makevisible(el, 0);
el.onmouseout = function(){
};
}
</SCRIPT>
...Leave a comment:
No activity results to display
Show More
Leave a comment: