Onclick in HTML with custom language





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I've made my own minimal language similar to Javascript, and have it functioning in an html file. I have my my-lang code (I'll call the language "my-lang") in between script tags, with the script type property set to "my-lang". Another JS file reads all the code in my-lang, then runs it. Say I had an anchor tag like this:



<a onclick="someJSfunction();">Text text text</a>



In the onclick property it runs some JS code. I want it to run code in my-lang. I had a few ideas, but none of them are ideal. Here are a few:




  1. In my JS parser which is at the bottom of the HTML file, I have a function that just runs code in my-lang, like a my-lang eval() written in JavaScript. Then in HTML, you can do <a onclick='run_my_lang("code in my-lang as a string")'>Text text text</a>


  2. I saw a bunch of devs prefacing the onclick text with a label "javascript:". I thought that was for something else, but I'm not sure. I dont know if this will work, but maybe something like onclick="my-lang:code"



Any ideas on how to do this without the prefixes?



In my-lang I have event handlers working, I just would also like to be able to do it in line.










share|improve this question























  • first one (damn that rule of 15 signs min in comment ^_^).

    – 2oppin
    Jan 3 at 6:37











  • @2oppin Why? I've been doing that so far but it's not ideal since the people writing in my-lang will have to run a javascript function to run my-lang code. That doesn't make any sense, plus, it adds an extra set of quotes, which makes things harder since if they have any quotes in the my-lang code, they'll have to escape some quotes. Is there some setting, maybe a meta-tag they can use to change the programming language?

    – Jaden Baptista
    Jan 3 at 17:32











  • now I hit the max limit) so put it to an answer, hope it helps)

    – 2oppin
    Jan 4 at 7:20


















0















I've made my own minimal language similar to Javascript, and have it functioning in an html file. I have my my-lang code (I'll call the language "my-lang") in between script tags, with the script type property set to "my-lang". Another JS file reads all the code in my-lang, then runs it. Say I had an anchor tag like this:



<a onclick="someJSfunction();">Text text text</a>



In the onclick property it runs some JS code. I want it to run code in my-lang. I had a few ideas, but none of them are ideal. Here are a few:




  1. In my JS parser which is at the bottom of the HTML file, I have a function that just runs code in my-lang, like a my-lang eval() written in JavaScript. Then in HTML, you can do <a onclick='run_my_lang("code in my-lang as a string")'>Text text text</a>


  2. I saw a bunch of devs prefacing the onclick text with a label "javascript:". I thought that was for something else, but I'm not sure. I dont know if this will work, but maybe something like onclick="my-lang:code"



Any ideas on how to do this without the prefixes?



In my-lang I have event handlers working, I just would also like to be able to do it in line.










share|improve this question























  • first one (damn that rule of 15 signs min in comment ^_^).

    – 2oppin
    Jan 3 at 6:37











  • @2oppin Why? I've been doing that so far but it's not ideal since the people writing in my-lang will have to run a javascript function to run my-lang code. That doesn't make any sense, plus, it adds an extra set of quotes, which makes things harder since if they have any quotes in the my-lang code, they'll have to escape some quotes. Is there some setting, maybe a meta-tag they can use to change the programming language?

    – Jaden Baptista
    Jan 3 at 17:32











  • now I hit the max limit) so put it to an answer, hope it helps)

    – 2oppin
    Jan 4 at 7:20














0












0








0








I've made my own minimal language similar to Javascript, and have it functioning in an html file. I have my my-lang code (I'll call the language "my-lang") in between script tags, with the script type property set to "my-lang". Another JS file reads all the code in my-lang, then runs it. Say I had an anchor tag like this:



<a onclick="someJSfunction();">Text text text</a>



In the onclick property it runs some JS code. I want it to run code in my-lang. I had a few ideas, but none of them are ideal. Here are a few:




  1. In my JS parser which is at the bottom of the HTML file, I have a function that just runs code in my-lang, like a my-lang eval() written in JavaScript. Then in HTML, you can do <a onclick='run_my_lang("code in my-lang as a string")'>Text text text</a>


  2. I saw a bunch of devs prefacing the onclick text with a label "javascript:". I thought that was for something else, but I'm not sure. I dont know if this will work, but maybe something like onclick="my-lang:code"



Any ideas on how to do this without the prefixes?



In my-lang I have event handlers working, I just would also like to be able to do it in line.










share|improve this question














I've made my own minimal language similar to Javascript, and have it functioning in an html file. I have my my-lang code (I'll call the language "my-lang") in between script tags, with the script type property set to "my-lang". Another JS file reads all the code in my-lang, then runs it. Say I had an anchor tag like this:



<a onclick="someJSfunction();">Text text text</a>



In the onclick property it runs some JS code. I want it to run code in my-lang. I had a few ideas, but none of them are ideal. Here are a few:




  1. In my JS parser which is at the bottom of the HTML file, I have a function that just runs code in my-lang, like a my-lang eval() written in JavaScript. Then in HTML, you can do <a onclick='run_my_lang("code in my-lang as a string")'>Text text text</a>


  2. I saw a bunch of devs prefacing the onclick text with a label "javascript:". I thought that was for something else, but I'm not sure. I dont know if this will work, but maybe something like onclick="my-lang:code"



Any ideas on how to do this without the prefixes?



In my-lang I have event handlers working, I just would also like to be able to do it in line.







javascript html






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 3 at 2:26









Jaden BaptistaJaden Baptista

758




758













  • first one (damn that rule of 15 signs min in comment ^_^).

    – 2oppin
    Jan 3 at 6:37











  • @2oppin Why? I've been doing that so far but it's not ideal since the people writing in my-lang will have to run a javascript function to run my-lang code. That doesn't make any sense, plus, it adds an extra set of quotes, which makes things harder since if they have any quotes in the my-lang code, they'll have to escape some quotes. Is there some setting, maybe a meta-tag they can use to change the programming language?

    – Jaden Baptista
    Jan 3 at 17:32











  • now I hit the max limit) so put it to an answer, hope it helps)

    – 2oppin
    Jan 4 at 7:20



















  • first one (damn that rule of 15 signs min in comment ^_^).

    – 2oppin
    Jan 3 at 6:37











  • @2oppin Why? I've been doing that so far but it's not ideal since the people writing in my-lang will have to run a javascript function to run my-lang code. That doesn't make any sense, plus, it adds an extra set of quotes, which makes things harder since if they have any quotes in the my-lang code, they'll have to escape some quotes. Is there some setting, maybe a meta-tag they can use to change the programming language?

    – Jaden Baptista
    Jan 3 at 17:32











  • now I hit the max limit) so put it to an answer, hope it helps)

    – 2oppin
    Jan 4 at 7:20

















first one (damn that rule of 15 signs min in comment ^_^).

– 2oppin
Jan 3 at 6:37





first one (damn that rule of 15 signs min in comment ^_^).

– 2oppin
Jan 3 at 6:37













@2oppin Why? I've been doing that so far but it's not ideal since the people writing in my-lang will have to run a javascript function to run my-lang code. That doesn't make any sense, plus, it adds an extra set of quotes, which makes things harder since if they have any quotes in the my-lang code, they'll have to escape some quotes. Is there some setting, maybe a meta-tag they can use to change the programming language?

– Jaden Baptista
Jan 3 at 17:32





@2oppin Why? I've been doing that so far but it's not ideal since the people writing in my-lang will have to run a javascript function to run my-lang code. That doesn't make any sense, plus, it adds an extra set of quotes, which makes things harder since if they have any quotes in the my-lang code, they'll have to escape some quotes. Is there some setting, maybe a meta-tag they can use to change the programming language?

– Jaden Baptista
Jan 3 at 17:32













now I hit the max limit) so put it to an answer, hope it helps)

– 2oppin
Jan 4 at 7:20





now I hit the max limit) so put it to an answer, hope it helps)

– 2oppin
Jan 4 at 7:20












1 Answer
1






active

oldest

votes


















0
















  1. As I wrote in the comment, the solution would be the 1st (onclick='run_my_lang("code")') if you already can do it than it's totally cool, really.



    If you are able to process on-click then your lang should be run on
    client
    (so in a browser), and the only lang available in browser is
    JS.




(You can't enforce Chrome or Safari to process construction "my-lang:code").




  1. If you can solve it via 2nd option, then it means you should have a some compiler that would translate your template with "my-lang: code" into "javascript: code" or "run_my_lang('code')", so you still will need to implement 1st.



  2. Oh, ok you have no need to use "my-lang" in Chrome|FF|Safari|Whatever, you have your own "WhateverBrowser" that can process "my-lang: code" (alongside with HTML, CSS and bunch of other things (and not to forget same Javascript)) in the received from the server HTML, and maybe your "WhateverBrowser" even written in "my-lang", that would be cool (but I doubt you have "WhateverBrowser" or ready to compete with Chrome|FF|Safari|Whatever)



    Or (maybe) you would have some specific "browser" that browse specific pages, can process mouse events and pass it to your lang.




And now to the main point, what is "my-lang"?



Unless it's 3rd (specific browser) your lang in one or another way is written in JS, so in the end it's JS lib:






window.myLang = function(code) {
let [,func,arg] = code.match(/^myLang:([a-zA-Z]+)((.*)?)$/);
if (myLangFunctions[func])
myLangFunctions[func](arg);
return this;
};
let myLangFunctions = {
sound: (arg) => {
switch(arg) {
case 'dog': alert('bark-bark');break;
case 'cat': alert('meow-meow');break;
case 'frog': alert('kero-kero');break;
default: alert('u-u-u-u-u');
}
}
}

div {
width: 70px;
height: 70px;
border: double 3px;
float: left;
margin: 5px;
line-height: 70px;
text-align: center;
}

<div onclick="myLang('myLang:sound(dog)')">dog</div>
<div onclick="myLang('myLang:sound(cat)')">cat</div>
<div onclick="myLang('myLang:sound(frog)')">frog</div>
<div onclick="myLang('myLang:sound(whatever)')">whatever</div>





And to solve it via 2nd option you will just need pre-compiler that will translate your template into some JS or HTML code (like JSX), so it would be just an extension of your 1st solution.



PS: I really think that your question purely theoretical, or even (maybe) one of your probable questions on some exams, but still wrote it for fun )) and hope it helps to you in your future path :)






share|improve this answer
























  • Awesome answer, thanks! And it's not purely hypothetical. Theres a couple other questions I asked here about it, and it is in development. I don't have my own browser. I guess I'll go ahead with the function route then. By the way, this is a small piece of a larger project. I'm not just making a bad alternative of JS.

    – Jaden Baptista
    Jan 4 at 13:30












Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54015579%2fonclick-in-html-with-custom-language%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0
















  1. As I wrote in the comment, the solution would be the 1st (onclick='run_my_lang("code")') if you already can do it than it's totally cool, really.



    If you are able to process on-click then your lang should be run on
    client
    (so in a browser), and the only lang available in browser is
    JS.




(You can't enforce Chrome or Safari to process construction "my-lang:code").




  1. If you can solve it via 2nd option, then it means you should have a some compiler that would translate your template with "my-lang: code" into "javascript: code" or "run_my_lang('code')", so you still will need to implement 1st.



  2. Oh, ok you have no need to use "my-lang" in Chrome|FF|Safari|Whatever, you have your own "WhateverBrowser" that can process "my-lang: code" (alongside with HTML, CSS and bunch of other things (and not to forget same Javascript)) in the received from the server HTML, and maybe your "WhateverBrowser" even written in "my-lang", that would be cool (but I doubt you have "WhateverBrowser" or ready to compete with Chrome|FF|Safari|Whatever)



    Or (maybe) you would have some specific "browser" that browse specific pages, can process mouse events and pass it to your lang.




And now to the main point, what is "my-lang"?



Unless it's 3rd (specific browser) your lang in one or another way is written in JS, so in the end it's JS lib:






window.myLang = function(code) {
let [,func,arg] = code.match(/^myLang:([a-zA-Z]+)((.*)?)$/);
if (myLangFunctions[func])
myLangFunctions[func](arg);
return this;
};
let myLangFunctions = {
sound: (arg) => {
switch(arg) {
case 'dog': alert('bark-bark');break;
case 'cat': alert('meow-meow');break;
case 'frog': alert('kero-kero');break;
default: alert('u-u-u-u-u');
}
}
}

div {
width: 70px;
height: 70px;
border: double 3px;
float: left;
margin: 5px;
line-height: 70px;
text-align: center;
}

<div onclick="myLang('myLang:sound(dog)')">dog</div>
<div onclick="myLang('myLang:sound(cat)')">cat</div>
<div onclick="myLang('myLang:sound(frog)')">frog</div>
<div onclick="myLang('myLang:sound(whatever)')">whatever</div>





And to solve it via 2nd option you will just need pre-compiler that will translate your template into some JS or HTML code (like JSX), so it would be just an extension of your 1st solution.



PS: I really think that your question purely theoretical, or even (maybe) one of your probable questions on some exams, but still wrote it for fun )) and hope it helps to you in your future path :)






share|improve this answer
























  • Awesome answer, thanks! And it's not purely hypothetical. Theres a couple other questions I asked here about it, and it is in development. I don't have my own browser. I guess I'll go ahead with the function route then. By the way, this is a small piece of a larger project. I'm not just making a bad alternative of JS.

    – Jaden Baptista
    Jan 4 at 13:30
















0
















  1. As I wrote in the comment, the solution would be the 1st (onclick='run_my_lang("code")') if you already can do it than it's totally cool, really.



    If you are able to process on-click then your lang should be run on
    client
    (so in a browser), and the only lang available in browser is
    JS.




(You can't enforce Chrome or Safari to process construction "my-lang:code").




  1. If you can solve it via 2nd option, then it means you should have a some compiler that would translate your template with "my-lang: code" into "javascript: code" or "run_my_lang('code')", so you still will need to implement 1st.



  2. Oh, ok you have no need to use "my-lang" in Chrome|FF|Safari|Whatever, you have your own "WhateverBrowser" that can process "my-lang: code" (alongside with HTML, CSS and bunch of other things (and not to forget same Javascript)) in the received from the server HTML, and maybe your "WhateverBrowser" even written in "my-lang", that would be cool (but I doubt you have "WhateverBrowser" or ready to compete with Chrome|FF|Safari|Whatever)



    Or (maybe) you would have some specific "browser" that browse specific pages, can process mouse events and pass it to your lang.




And now to the main point, what is "my-lang"?



Unless it's 3rd (specific browser) your lang in one or another way is written in JS, so in the end it's JS lib:






window.myLang = function(code) {
let [,func,arg] = code.match(/^myLang:([a-zA-Z]+)((.*)?)$/);
if (myLangFunctions[func])
myLangFunctions[func](arg);
return this;
};
let myLangFunctions = {
sound: (arg) => {
switch(arg) {
case 'dog': alert('bark-bark');break;
case 'cat': alert('meow-meow');break;
case 'frog': alert('kero-kero');break;
default: alert('u-u-u-u-u');
}
}
}

div {
width: 70px;
height: 70px;
border: double 3px;
float: left;
margin: 5px;
line-height: 70px;
text-align: center;
}

<div onclick="myLang('myLang:sound(dog)')">dog</div>
<div onclick="myLang('myLang:sound(cat)')">cat</div>
<div onclick="myLang('myLang:sound(frog)')">frog</div>
<div onclick="myLang('myLang:sound(whatever)')">whatever</div>





And to solve it via 2nd option you will just need pre-compiler that will translate your template into some JS or HTML code (like JSX), so it would be just an extension of your 1st solution.



PS: I really think that your question purely theoretical, or even (maybe) one of your probable questions on some exams, but still wrote it for fun )) and hope it helps to you in your future path :)






share|improve this answer
























  • Awesome answer, thanks! And it's not purely hypothetical. Theres a couple other questions I asked here about it, and it is in development. I don't have my own browser. I guess I'll go ahead with the function route then. By the way, this is a small piece of a larger project. I'm not just making a bad alternative of JS.

    – Jaden Baptista
    Jan 4 at 13:30














0












0








0









  1. As I wrote in the comment, the solution would be the 1st (onclick='run_my_lang("code")') if you already can do it than it's totally cool, really.



    If you are able to process on-click then your lang should be run on
    client
    (so in a browser), and the only lang available in browser is
    JS.




(You can't enforce Chrome or Safari to process construction "my-lang:code").




  1. If you can solve it via 2nd option, then it means you should have a some compiler that would translate your template with "my-lang: code" into "javascript: code" or "run_my_lang('code')", so you still will need to implement 1st.



  2. Oh, ok you have no need to use "my-lang" in Chrome|FF|Safari|Whatever, you have your own "WhateverBrowser" that can process "my-lang: code" (alongside with HTML, CSS and bunch of other things (and not to forget same Javascript)) in the received from the server HTML, and maybe your "WhateverBrowser" even written in "my-lang", that would be cool (but I doubt you have "WhateverBrowser" or ready to compete with Chrome|FF|Safari|Whatever)



    Or (maybe) you would have some specific "browser" that browse specific pages, can process mouse events and pass it to your lang.




And now to the main point, what is "my-lang"?



Unless it's 3rd (specific browser) your lang in one or another way is written in JS, so in the end it's JS lib:






window.myLang = function(code) {
let [,func,arg] = code.match(/^myLang:([a-zA-Z]+)((.*)?)$/);
if (myLangFunctions[func])
myLangFunctions[func](arg);
return this;
};
let myLangFunctions = {
sound: (arg) => {
switch(arg) {
case 'dog': alert('bark-bark');break;
case 'cat': alert('meow-meow');break;
case 'frog': alert('kero-kero');break;
default: alert('u-u-u-u-u');
}
}
}

div {
width: 70px;
height: 70px;
border: double 3px;
float: left;
margin: 5px;
line-height: 70px;
text-align: center;
}

<div onclick="myLang('myLang:sound(dog)')">dog</div>
<div onclick="myLang('myLang:sound(cat)')">cat</div>
<div onclick="myLang('myLang:sound(frog)')">frog</div>
<div onclick="myLang('myLang:sound(whatever)')">whatever</div>





And to solve it via 2nd option you will just need pre-compiler that will translate your template into some JS or HTML code (like JSX), so it would be just an extension of your 1st solution.



PS: I really think that your question purely theoretical, or even (maybe) one of your probable questions on some exams, but still wrote it for fun )) and hope it helps to you in your future path :)






share|improve this answer















  1. As I wrote in the comment, the solution would be the 1st (onclick='run_my_lang("code")') if you already can do it than it's totally cool, really.



    If you are able to process on-click then your lang should be run on
    client
    (so in a browser), and the only lang available in browser is
    JS.




(You can't enforce Chrome or Safari to process construction "my-lang:code").




  1. If you can solve it via 2nd option, then it means you should have a some compiler that would translate your template with "my-lang: code" into "javascript: code" or "run_my_lang('code')", so you still will need to implement 1st.



  2. Oh, ok you have no need to use "my-lang" in Chrome|FF|Safari|Whatever, you have your own "WhateverBrowser" that can process "my-lang: code" (alongside with HTML, CSS and bunch of other things (and not to forget same Javascript)) in the received from the server HTML, and maybe your "WhateverBrowser" even written in "my-lang", that would be cool (but I doubt you have "WhateverBrowser" or ready to compete with Chrome|FF|Safari|Whatever)



    Or (maybe) you would have some specific "browser" that browse specific pages, can process mouse events and pass it to your lang.




And now to the main point, what is "my-lang"?



Unless it's 3rd (specific browser) your lang in one or another way is written in JS, so in the end it's JS lib:






window.myLang = function(code) {
let [,func,arg] = code.match(/^myLang:([a-zA-Z]+)((.*)?)$/);
if (myLangFunctions[func])
myLangFunctions[func](arg);
return this;
};
let myLangFunctions = {
sound: (arg) => {
switch(arg) {
case 'dog': alert('bark-bark');break;
case 'cat': alert('meow-meow');break;
case 'frog': alert('kero-kero');break;
default: alert('u-u-u-u-u');
}
}
}

div {
width: 70px;
height: 70px;
border: double 3px;
float: left;
margin: 5px;
line-height: 70px;
text-align: center;
}

<div onclick="myLang('myLang:sound(dog)')">dog</div>
<div onclick="myLang('myLang:sound(cat)')">cat</div>
<div onclick="myLang('myLang:sound(frog)')">frog</div>
<div onclick="myLang('myLang:sound(whatever)')">whatever</div>





And to solve it via 2nd option you will just need pre-compiler that will translate your template into some JS or HTML code (like JSX), so it would be just an extension of your 1st solution.



PS: I really think that your question purely theoretical, or even (maybe) one of your probable questions on some exams, but still wrote it for fun )) and hope it helps to you in your future path :)






window.myLang = function(code) {
let [,func,arg] = code.match(/^myLang:([a-zA-Z]+)((.*)?)$/);
if (myLangFunctions[func])
myLangFunctions[func](arg);
return this;
};
let myLangFunctions = {
sound: (arg) => {
switch(arg) {
case 'dog': alert('bark-bark');break;
case 'cat': alert('meow-meow');break;
case 'frog': alert('kero-kero');break;
default: alert('u-u-u-u-u');
}
}
}

div {
width: 70px;
height: 70px;
border: double 3px;
float: left;
margin: 5px;
line-height: 70px;
text-align: center;
}

<div onclick="myLang('myLang:sound(dog)')">dog</div>
<div onclick="myLang('myLang:sound(cat)')">cat</div>
<div onclick="myLang('myLang:sound(frog)')">frog</div>
<div onclick="myLang('myLang:sound(whatever)')">whatever</div>





window.myLang = function(code) {
let [,func,arg] = code.match(/^myLang:([a-zA-Z]+)((.*)?)$/);
if (myLangFunctions[func])
myLangFunctions[func](arg);
return this;
};
let myLangFunctions = {
sound: (arg) => {
switch(arg) {
case 'dog': alert('bark-bark');break;
case 'cat': alert('meow-meow');break;
case 'frog': alert('kero-kero');break;
default: alert('u-u-u-u-u');
}
}
}

div {
width: 70px;
height: 70px;
border: double 3px;
float: left;
margin: 5px;
line-height: 70px;
text-align: center;
}

<div onclick="myLang('myLang:sound(dog)')">dog</div>
<div onclick="myLang('myLang:sound(cat)')">cat</div>
<div onclick="myLang('myLang:sound(frog)')">frog</div>
<div onclick="myLang('myLang:sound(whatever)')">whatever</div>






share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 4 at 7:28









2oppin2oppin

1,4811427




1,4811427













  • Awesome answer, thanks! And it's not purely hypothetical. Theres a couple other questions I asked here about it, and it is in development. I don't have my own browser. I guess I'll go ahead with the function route then. By the way, this is a small piece of a larger project. I'm not just making a bad alternative of JS.

    – Jaden Baptista
    Jan 4 at 13:30



















  • Awesome answer, thanks! And it's not purely hypothetical. Theres a couple other questions I asked here about it, and it is in development. I don't have my own browser. I guess I'll go ahead with the function route then. By the way, this is a small piece of a larger project. I'm not just making a bad alternative of JS.

    – Jaden Baptista
    Jan 4 at 13:30

















Awesome answer, thanks! And it's not purely hypothetical. Theres a couple other questions I asked here about it, and it is in development. I don't have my own browser. I guess I'll go ahead with the function route then. By the way, this is a small piece of a larger project. I'm not just making a bad alternative of JS.

– Jaden Baptista
Jan 4 at 13:30





Awesome answer, thanks! And it's not purely hypothetical. Theres a couple other questions I asked here about it, and it is in development. I don't have my own browser. I guess I'll go ahead with the function route then. By the way, this is a small piece of a larger project. I'm not just making a bad alternative of JS.

– Jaden Baptista
Jan 4 at 13:30




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54015579%2fonclick-in-html-with-custom-language%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

'app-layout' is not a known element: how to share Component with different Modules

android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

WPF add header to Image with URL pettitions [duplicate]