js4 转

内容摘要:1. How to use email validation in Java script.Like User can't enter invalid email address?
关键词: JavaScript面试题   IT专业英语面试题  
本文地址:http://www.teecool.com/post/2007071901.html
内容正文:

1.  How to use email validation in Java script.Like User can't enter invalid email address?

/^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/

Use this regular expression

You can be more strict by using .com,.biz,.org,.arpa etc in regular expression

 

2.How to go next field without filling the text? Which function should use.Phone No Text validation in javascript?

3.  How to add a combo box dynamically at run time in Java script?

document.forms[0].<combobox name>.options[index]= new Option(Apearingtext,value)

for (var i=0;i<5;i++)
{
document.forms[0].cmb1.options[i]= new Option("Test"+i,i)
}

4.  Explain about session? Where it runs & what are different types of session handling?

session is a mean to maintain client identity...

many client my request u .. further they my visit several pages how can you identify which client is accessing page..

to maintain this each client should be assigned a unique ID as soon as the request first page.. and to access consecuent pages the client must supply his/her ID whith page request... now u can identify that which client is requesting the page...

search on net for various techniques to maintain the session..;-)

5.  What is the main difference between Client side JavaScript and and Server side Java Script. How actually they run on both side with Example?

6.  What is javascript and what is it functionality?

7.  Write sample code for pagination using java script.

8.  What are the methods of validating whether the form is secure?

9.  How to prevent a window not to be clicked or selected any way in java script?11.  How to validate a Email-address, in Form using JavaScript?

10.  What is the difference between java and java script?

 

12.  what is flapjax and what are its benefits compared to javascript . How it converts flapjax code to javascript code during compilation

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值