Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble with onload #631

Open
ghost opened this issue Jul 11, 2014 · 2 comments
Open

Trouble with onload #631

ghost opened this issue Jul 11, 2014 · 2 comments
Labels

Comments

@ghost
Copy link

ghost commented Jul 11, 2014

Some DOM element on my first page is loaded by an init function, like this:

When I load another page by push method, and go back. The DOM element loaded disappeared. And the init function won't work either.
@cvrebert
Copy link
Contributor

You need to use triple-backticks when posting HTML in GitHub comments; see https://help.github.com/articles/github-flavored-markdown#fenced-code-blocks

@ghost
Copy link
Author

ghost commented Jul 11, 2014

@cvrebert
thank you for your advice.
The code I missed in the issue is:

<body onload='init()'>

@cvrebert cvrebert added the js label Jul 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant