
因为老的浏览器能够识别doctype,但是并不意味它可以处理HTML5标签和功能。
HTML5 a标签电话功能:1、<a href="tel:4008001234" class="call"></a>。
2、亲测是可以的,注意tel:的和html中的meta写法为 <meta name="format-detection" content="telephone=yes">。
3、target是打开链接时用什么目标打开,是在新窗口中打开就用target=_blank,在父窗口中打开就用target=_parent,在当前窗口中打开就用target=_self,
target=_top表示在顶层窗口中打开
这样写:<a href="tel:123456789">拨号</a>
HTML 运行在手机浏览器上的可以调用手机的拨号就是你想要拨打的电话号码在页面中看到“拨号”的字样,点一下,就会自动跳到拨打电话的页面啦。这种方式塞班、安卓与iphone都支持。
例如:
<a href=”javascript:phone('+phone+') ”>拨打电话</a>
function phone(date)
{
window.location.href = 'tel://' + date
}
用html制作可以拨打电话的链接其实是一个简单的程序可以试着写一些简单的。
html 调用手机发短信功能语句如下:1、建立短信模板
2、html页面加入以下代码:
<form action="servlet/Sim_servlet?action=SendSms" method="post">
电话号码:<input type="text" name="mobile">
内容:<input type="text" name="message">
<input type="submit" name="submit" value="提交">
</form>
3、后台通过短信模板处理:
String mobile=request.getParameter("mobile")
String message1=request.getParameter("message")
String message=java.net.URLEncoder.encode(message1)
String action=request.getParameter("action")
String pw="xxx"//私人密码
String ID="xxx"//用户id
String URL="http://www.72dns.com/smsadmin/Sms_Api.aspx?"
String last=URL+"UserID="+ID+"&PassWord="+pw+"&mobile="+mobile+"&message="+message+"&action="+action
response.sendRedirect(last)
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)