Solved

changing javascript tag

Posted on 2010-11-29
2
525 Views
Last Modified: 2012-05-10
i have a following javascript :

<script type="text/javascript">

cmSetClientID("60375269",false,"testdata.xxx.com","yyy.co.uk");
cmCreateConversionEventTag("OWNER", "1", "CONTACT US", "0", "", "");
</script>

I want to change the value of OWNER to GUEST in the javascript using the onfocus on the form on the same page.. Is this posible ?best if I can use Mootool..
0
Comment
Question by:bcv2010
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
Codebot earned 500 total points
ID: 34229834
yes this is possible  just put argument as a gloabl variable and then you can change its value in any function.
var fargu="OWNER"

then
<script type="text/javascript">

cmSetClientID("60375269",false,"testdata.xxx.com","yyy.co.uk");
cmCreateConversionEventTag(fargu, "1", "CONTACT US", "0", "", "");
</script>
on onfocus function change value of fargu to Guest
0
 

Author Closing Comment

by:bcv2010
ID: 34238408
clear and easy to follow
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the following article I will try to explain some of the issues I had learning Joomla and I hope this helps all of you beginners out there that love the concept but find it confusing and difficult to manage and configure a Joomla website. Like …
Welcome Friends, This is the tutorial for how to create new simple module in joomla 1.5. In the module has two important files. One is XML file and another file is PHP controller file. First you need to create the XML file. (CODE) …
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question