execute_script | R Documentation |
The execute_script
function executes the specified JavaScript code on the page object within a web browser session.
execute_script(page_df, script)
page_df |
A data frame containing page information, including the |
script |
A character string representing the JavaScript code to execute on the page. |
The result of executing the JavaScript code on the page.
# Create a page_df data frame
page_df <- data.frame(page_id = "my_page")
# Execute JavaScript code on the page using the page_df
execute_script(page_df, "alert('Hello, World!');")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.