Solved

changing javascript tag

Posted on 2010-11-29
2
519 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
2 Comments
 
LVL 6

Accepted Solution

by:
Codebot earned 500 total points
Comment Utility
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
Comment Utility
clear and easy to follow
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

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) …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

728 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now