'how to execute javascript on another page?
I have a javascript code, i don't know what exactly that code does. I was told to execute that script on a button click and that worked fine.
But i need to run that script on another tab, actually they want that when button is clicked it should open another tab and that script should run on new tab.I am using this code to run the script on another page and it's not working.
<INPUT class="input_style15" type=submit value="Enter" onclick="window.open(test_script());" name=get_button>
when button is clicked, it shows the error- HTTP 404 page not found.
Need help, Thanks in advance.
Solution 1:[1]
window.open() is explained in the attached link.
You need to provide us with more details on the javascript function test_script() to be able to assist you more.
Here is also a good example of your question being answered on how to use window.open() - hope it helps :) How to open a new window and insert html into it using jQuery?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Community |
