PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WEBDEV 2024
→
Get the value of a webdev variable and pass it to an HTML variable
Get the value of a webdev variable and pass it to an HTML variable
Started by Tobiaz, Feb., 03 2023 11:52 PM - 1 reply
Connect yourself…
Tobiaz
#1
Registered member
5 messages
Posted on February, 03 2023 - 11:52 PM
Please help
In a button of the page I have this html code, I can call from the web page. all good up to here.
I want to replace the html phone number, from a webdev variable
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Boton responsive llamar</title>>
<link rel="stylesheet" href="estilos.css">
</head>
<body>
<header>
<div Class="topbar">
<a href="tel:+584146124240"
Class="btnllamar" onclik="return
(navigator.userAgent.match(/Android │
iphone │ movile /i)) != Null;"
>+584146124240</a>
</div>
</header>
</body>
</html>
Report
0
0
Carlos
#2
Posted on February, 04 2023 - 7:31 PM
//Declare your Variable on your page
tel is string = "+11234567890"
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Responsive Call Button</title>
<link rel="stylesheet" href="estilos.css">
</head>
<body>
<header>
<div Class="topbar">
<a href="tel:" + tel <---------------------------Here goes your variable.
Class="btnllamar" onclick="return
(navigator.userAgent.match(/Android │
iphone │ mobile /i)) != Null;"
>Call Now</a>
</div>
</header>
</body>
</html>
See if that works for you
Regards,
Carlos
Report
0
0
→ Go back to WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text