In the framework, enter the phone number and press OK to jump to a webpage. How can this problem be solved?

Source: Internet
Author: User
In the framework, enter the phone number and press OK to jump to a webpage. How to write HTML? For example, click "OK" (enter the mobile phone number here) and it will appear in the following link. Www. xxxx. comsdssdfsd? Fsd mobile phone number sdfr.eft.com ------ solution ------------------ HTMLcode & lt; html & gt; & lt; body & gt; & lt; enter the phone number in the input framework and press OK to jump to a webpage.
How to write HTML?
For example (enter the mobile phone number here) click OK
Will appear in the following link. Http://www.xxxx.com/sds/sdfsd? Fsd mobile phone number sdfr.eft.com

------ Solution --------------------
HTML code

Script var $ = function (id) {return document. getElementById (id) ;}$ ('btn _ submit '). onclick = function () {var src = "http://www.xxxx.com/sds/sdfsd? Fsdsdfr.eft.com "; $ ('result '). innerHTML = src. replace (/sdsd/, "sd" + $ ('phone _ num '). value + "sd");} script
------ Solution --------------------
HTML code
    Untitled DocumentScript function test () {var tel = document. form. phone. value; alert ("phone -->" + tel); var url = "http://www.xxxx.com/sds/sdfsd? Fsd "+ tel +" sdfr.eft.com "; alert (" url --> "+ url);} script

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.