Javascript: Window. Open(Window. clickTag) Opens Double Tabs in Firefox
I Am Using clickTags in My Code for Tracking. This Is My Setup. Var clickTag = ""; ---Content--- the Issue Is with Firefox Opening Double Tabs When I Click on...
I am using clickTags in my code for tracking. This is my setup.
<script type="text/javascript">
var clickTag = "";
</script>
<a href="javascript:window.open(window.clickTag)">
---Content---
</a>
The issue is with Firefox opening double tabs when I click on the link. I only want it to open to the information that is associated with the link. My question, is there a workaround or is there a bug with Firefox?
2 Answers
For this i would create a function (see below)
<script type="text/javascript">
function clickTag() {
return ""
}
</script>
<a href="#" onclick="window.open(clickTag()); return false;">Link</a>
javascript:window.open(window.clickTag) was what i got from coding from my website and then copying it after it finilized. :)