Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

changing javascript tag

Posted on 2010-11-29
2
Medium Priority
?
545 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 2000 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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

What you will need: Any version of Photoshop or similar product (examples in Photoshop) Internet Access FTP Access to your joomla install or ability to upload images within joomla administrator backend Create Image: Lets start off with cre…
Have you ever wanted to use that sweet jQuery gallery plugin on your Joomla site but couldn't get it working due to jQuery conflicts or your lack of knowledge about what's under the Joomla hood? This article will step you through the process of impl…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

610 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