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