Changed: DB Params
This commit is contained in:
27
templ/generator/test-js-usage/expected.html
Normal file
27
templ/generator/test-js-usage/expected.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<button onclick="alert("Hello, World!")">
|
||||
Click me
|
||||
</button>
|
||||
<script>
|
||||
function customAlert(msg, date) {
|
||||
alert(msg + " " + date);
|
||||
}
|
||||
</script>
|
||||
<button onclick="customAlert("Hello, custom alert 1: ","2020-01-01T00:00:00Z")">
|
||||
Click me
|
||||
</button>
|
||||
<button onclick="customAlert("Hello, custom alert 2: ","2020-01-01T00:00:00Z")">
|
||||
Click me
|
||||
</button>
|
||||
<script>
|
||||
customAlert("Runs on page load","2020-01-01T00:00:00Z")
|
||||
</script>
|
||||
<script>
|
||||
function onClickEventHandler(event, data) {
|
||||
alert(event.type);
|
||||
alert(data)
|
||||
event.preventDefault();
|
||||
}
|
||||
</script>
|
||||
<button onclick="onClickEventHandler(event,"1234")">
|
||||
Pass event handler
|
||||
</button>
|
Reference in New Issue
Block a user