Solved

changing javascript tag

Posted on 2010-11-29
2
524 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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 …
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

740 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