Skip to content

How do you call alert or console.log #11379

@dodyg

Description

@dodyg

I tried but it never returns. Any of this call will work once then it just stops working.

protected override async Task OnInitAsync()
{
await JS.InvokeAsync<object>("alert", "Hello World");
await JS.InvokeAsync<object>("console.log", "hello world console");
}


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions